otel_span (opentelemetry_api v1.0.0-rc.2)
Link to this section Summary
Link to this section Types
Link to this type
start_opts/0
Specs
start_opts() :: #{attributes => opentelemetry:attributes(), sampler => term(), links => opentelemetry:links(), is_recording => boolean(), start_time => opentelemetry:timestamp(), kind => opentelemetry:span_kind()}.
Link to this section Functions
Link to this function
add_event(SpanCtx, Name, Attributes)
Specs
add_event(SpanCtx, Name, Attributes) -> boolean() when Name :: opentelemetry:event_name(), Attributes :: opentelemetry:attributes(), SpanCtx :: opentelemetry:span_ctx().
Link to this function
add_events(SpanCtx, Events)
Specs
add_events(SpanCtx, Events) -> boolean() when Events :: opentelemetry:events(), SpanCtx :: opentelemetry:span_ctx().
Link to this function
end_span(SpanCtx)
Specs
end_span(SpanCtx) -> SpanCtx when SpanCtx :: opentelemetry:span_ctx().
Link to this function
is_recording(SpanCtx)
Specs
is_recording(SpanCtx) -> boolean() when SpanCtx :: opentelemetry:span_ctx().
Link to this function
is_valid(SpanCtx)
Specs
is_valid(SpanCtx) -> boolean() when SpanCtx :: opentelemetry:span_ctx().
Link to this function
record_exception(SpanCtx, Class, Term, Stacktrace, Attributes)
Specs
record_exception(SpanCtx, Class, Term, Stacktrace, Attributes) -> boolean() when SpanCtx :: opentelemetry:span_ctx(), Class :: atom(), Term :: term(), Stacktrace :: [any()], Attributes :: opentelemetry:attributes().
Link to this function
record_exception(SpanCtx, Class, Term, Message, Stacktrace, Attributes)
Specs
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().
Link to this function
set_attribute(SpanCtx, Key, Value)
Specs
set_attribute(SpanCtx, Key, Value) -> boolean() when Key :: opentelemetry:attribute_key(), Value :: opentelemetry:attribute_value(), SpanCtx :: opentelemetry:span_ctx().
Link to this function
set_attributes(SpanCtx, Attributes)
Specs
set_attributes(SpanCtx, Attributes) -> boolean() when Attributes :: opentelemetry:attributes(), SpanCtx :: opentelemetry:span_ctx().
Link to this function
set_status(SpanCtx, Status)
Specs
set_status(SpanCtx, Status) -> boolean() when Status :: opentelemetry:status(), SpanCtx :: opentelemetry:span_ctx().
Link to this function
span_id(Span_ctx)
Specs
span_id(opentelemetry:span_ctx()) -> opentelemetry:span_id().
Link to this function
trace_id(Span_ctx)
Specs
trace_id(opentelemetry:span_ctx()) -> opentelemetry:trace_id().
Link to this function
tracestate(Span_ctx)
Specs
tracestate(opentelemetry:span_ctx()) -> opentelemetry:tracestate().
Link to this function
update_name(SpanCtx, Name)
Specs
update_name(SpanCtx, Name) -> boolean() when Name :: opentelemetry:span_name(), SpanCtx :: opentelemetry:span_ctx().