O11y.Status (O11y v0.2.10)
Struct version of the erlang record definition for the status record on a span.
The record is defined here: https://github.com/open-telemetry/opentelemetry-erlang/blob/main/apps/opentelemetry_api/include/opentelemetry.hrl#L76
Summary
Functions
Builds a status struct from the given record.
Types
Functions
@spec from_record(status_record()) :: t()
Builds a status struct from the given record.
Examples
iex> O11y.Status.from_record({:status, :error, "whoops!"})
%O11y.Status{
code: :error,
message: "whoops!"
}