Module otel_span

Span behaviour.

Description

Span behaviour.

Data Types

start_opts()

start_opts() = #{attributes => opentelemetry:attributes_map(), links => [opentelemetry:link()], is_recording => boolean(), start_time => opentelemetry:timestamp(), kind => opentelemetry:span_kind()}

Function Index

add_event/3
add_events/2
end_span/1
end_span/2
hex_span_id/1
hex_trace_id/1
is_recording/1
is_valid/1
is_valid_name/1
process_attributes/1
record_exception/5
record_exception/6
set_attribute/3
set_attributes/2
set_status/2
span_id/1
trace_id/1
tracestate/1
update_name/2
validate_start_opts/1

Function Details

add_event/3

add_event(SpanCtx, Name, Attributes) -> boolean()

add_events/2

add_events(SpanCtx, Events) -> boolean()

end_span/1

end_span(SpanCtx) -> SpanCtx

end_span/2

end_span(SpanCtx, Timestamp) -> SpanCtx

hex_span_id/1

hex_span_id(Span_ctx::opentelemetry:span_ctx()) -> opentelemetry:hex_span_id()

hex_trace_id/1

hex_trace_id(Span_ctx::opentelemetry:span_ctx()) -> opentelemetry:hex_trace_id()

is_recording/1

is_recording(SpanCtx) -> boolean()

is_valid/1

is_valid(SpanCtx) -> boolean()

is_valid_name/1

is_valid_name(Name::any()) -> boolean()

process_attributes/1

process_attributes(Attributes::any()) -> opentelemetry:attributes_map()

record_exception/5

record_exception(SpanCtx, Class, Term, Stacktrace, Attributes) -> boolean()

record_exception/6

record_exception(SpanCtx, Class, Term, Message, Stacktrace, Attributes) -> boolean()

set_attribute/3

set_attribute(SpanCtx, Key, Value) -> boolean()

set_attributes/2

set_attributes(SpanCtx, Attributes) -> boolean()

set_status/2

set_status(SpanCtx, Status) -> boolean()

span_id/1

span_id(Span_ctx::opentelemetry:span_ctx()) -> opentelemetry:span_id()

trace_id/1

trace_id(Span_ctx::opentelemetry:span_ctx()) -> opentelemetry:trace_id()

tracestate/1

tracestate(Span_ctx::opentelemetry:span_ctx() | undefined) -> opentelemetry:tracestate()

update_name/2

update_name(SpanCtx, Name) -> boolean()

validate_start_opts/1

validate_start_opts(Opts::start_opts()) -> start_opts()


Generated by EDoc