otel_span_ets (opentelemetry v1.6.0)

View Source

ETS backed interface for working with spans.

Summary

Functions

add_event(SpanCtx, Name, Attributes)

-spec add_event(opentelemetry:span_ctx() | undefined,
                unicode:unicode_binary(),
                opentelemetry:attributes_map()) ->
                   boolean().

add_events(Span_ctx, NewEvents)

-spec add_events(opentelemetry:span_ctx() | undefined, [opentelemetry:event()]) -> boolean().

end_span(SpanCtx)

end_span(SpanCtx, Timestamp)

get_ctx(Span)

-spec get_ctx(opentelemetry:span()) -> opentelemetry:span_ctx().

handle_call(Msg, From, State)

handle_cast(Msg, State)

init(Opts)

set_attribute(Span_ctx, Key, Value)

-spec set_attribute(opentelemetry:span_ctx() | undefined,
                    opentelemetry:attribute_key(),
                    opentelemetry:attribute_value()) ->
                       boolean().

set_attributes(Span_ctx, NewAttributes)

-spec set_attributes(opentelemetry:span_ctx() | undefined, opentelemetry:attributes_map()) -> boolean().

set_status(Span_ctx, Status)

-spec set_status(opentelemetry:span_ctx() | undefined, opentelemetry:status()) -> boolean().

start_link(Opts)

start_span(Ctx, Name, Sampler, IdGeneratorModule, Opts, Processors, InstrumentationScope)

-spec start_span(otel_ctx:t(),
                 opentelemetry:span_name(),
                 otel_sampler:t(),
                 otel_id_generator:t(),
                 otel_span:start_config(),
                 fun(),
                 otel_tracer_server:instrumentation_scope() | undefined) ->
                    opentelemetry:span_ctx().

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

update_name(Span_ctx, Name)

-spec update_name(opentelemetry:span_ctx() | undefined, opentelemetry:span_name()) -> boolean().