View Source otel_span (opentelemetry_api v1.0.3)
Link to this section Summary
Link to this section Types
Specs
start_opts() :: #{attributes => opentelemetry:attributes_map(), links => [opentelemetry:link()], is_recording => boolean(), start_time => opentelemetry:timestamp(), kind => opentelemetry:span_kind()}.
Link to this section Functions
Specs
add_event(SpanCtx, Name, Attributes) -> boolean() when Name :: opentelemetry:event_name(), Attributes :: opentelemetry:attributes_map(), SpanCtx :: opentelemetry:span_ctx().
Specs
add_events(SpanCtx, Events) -> boolean() when Events :: [opentelemetry:event()], SpanCtx :: opentelemetry:span_ctx().
Specs
end_span(SpanCtx) -> SpanCtx when SpanCtx :: opentelemetry:span_ctx().
Specs
end_span(SpanCtx, Timestamp) -> SpanCtx when SpanCtx :: opentelemetry:span_ctx(), Timestamp :: integer() | undefined.
Specs
hex_span_id(opentelemetry:span_ctx()) -> opentelemetry:hex_span_id().
Specs
hex_trace_id(opentelemetry:span_ctx()) -> opentelemetry:hex_trace_id().
Specs
is_recording(SpanCtx) -> boolean() when SpanCtx :: opentelemetry:span_ctx().
Specs
is_valid(SpanCtx) -> boolean() when SpanCtx :: opentelemetry:span_ctx().
Specs
is_valid_name(any()) -> boolean().
Specs
process_attributes(any()) -> opentelemetry:attributes_map().
Specs
record_exception(SpanCtx, Class, Term, Stacktrace, Attributes) -> boolean() when SpanCtx :: opentelemetry:span_ctx(), Class :: atom(), Term :: term(), Stacktrace :: [any()], Attributes :: opentelemetry:attributes_map().
Link to this function
record_exception(SpanCtx, Class, Term, Message, Stacktrace, Attributes)
View SourceSpecs
record_exception(SpanCtx, Class, Term, Message, Stacktrace, Attributes) -> boolean() when SpanCtx :: opentelemetry:span_ctx(), Class :: atom(), Term :: term(), Message :: unicode:unicode_binary(), Stacktrace :: [any()], Attributes :: opentelemetry:attributes_map().
Specs
set_attribute(SpanCtx, Key, Value) -> boolean() when Key :: opentelemetry:attribute_key(), Value :: opentelemetry:attribute_value(), SpanCtx :: opentelemetry:span_ctx().
Specs
set_attributes(SpanCtx, Attributes) -> boolean() when Attributes :: opentelemetry:attributes_map(), SpanCtx :: opentelemetry:span_ctx().
Specs
set_status(SpanCtx, Status) -> boolean() when Status :: opentelemetry:status(), SpanCtx :: opentelemetry:span_ctx().
Specs
set_status(SpanCtx, Code, Message) -> boolean() when Code :: opentelemetry:status_code(), Message :: unicode:unicode_binary(), SpanCtx :: opentelemetry:span_ctx().
Specs
span_id(opentelemetry:span_ctx()) -> opentelemetry:span_id().
Specs
trace_id(opentelemetry:span_ctx()) -> opentelemetry:trace_id().
Specs
tracestate(opentelemetry:span_ctx() | undefined) -> opentelemetry:tracestate().
Specs
update_name(SpanCtx, Name) -> boolean() when Name :: opentelemetry:span_name(), SpanCtx :: opentelemetry:span_ctx().
Specs
validate_start_opts(start_opts()) -> start_opts().