Module otel_span_ets

ETS backed interface for working with spans.

Behaviours: gen_server.

Description

ETS backed interface for working with spans.

Function Index

add_event/3
add_events/2
end_span/1
end_span/2End a span based on its context and send to reporter.
get_ctx/1
handle_call/3
handle_cast/2
init/1
set_attribute/3
set_attributes/2
set_status/2
start_link/1
start_span/5Start a span and insert into the active span ets table.
update_name/2

Function Details

add_event/3

add_event(SpanCtx::opentelemetry:span_ctx(), Name::unicode:unicode_binary(), Attributes::opentelemetry:attributes()) -> boolean()

add_events/2

add_events(Span_ctx::opentelemetry:span_ctx(), NewEvents::opentelemetry:events()) -> boolean()

end_span/1

end_span(SpanCtx) -> any()

end_span/2

end_span(Span_ctx::opentelemetry:span_ctx(), Processors::function()) -> boolean() | {error, term()}

End a span based on its context and send to reporter.

get_ctx/1

get_ctx(Span::opentelemetry:span()) -> opentelemetry:span_ctx()

handle_call/3

handle_call(Msg, From, State) -> any()

handle_cast/2

handle_cast(Msg, State) -> any()

init/1

init(Opts) -> any()

set_attribute/3

set_attribute(Span_ctx::opentelemetry:span_ctx(), Key::opentelemetry:attribute_key(), Value::opentelemetry:attribute_value()) -> boolean()

set_attributes/2

set_attributes(Span_ctx::opentelemetry:span_ctx(), NewAttributes::opentelemetry:attributes()) -> boolean()

set_status/2

set_status(Span_ctx::opentelemetry:span_ctx(), Status::opentelemetry:status()) -> boolean()

start_link/1

start_link(Opts) -> any()

start_span/5

start_span(Ctx::otel_ctx:t(), Name::opentelemetry:span_name(), Opts::otel_span:start_opts(), Processors::function(), InstrumentationLibrary::otel_tracer_server:instrumentation_library()) -> opentelemetry:span_ctx()

Start a span and insert into the active span ets table.

update_name/2

update_name(Span_ctx::opentelemetry:span_ctx(), Name::opentelemetry:span_name()) -> boolean()


Generated by EDoc