View Source otel_tracer behaviour (opentelemetry_api v1.1.1)

Link to this section Summary

Functions

Returns a span_ctx record with is_recording set to false and is_remote set to true. This is mainly for use in propagators when they extract a Span to be used as a parent.
Returns a span_ctx record with is_recording set to false. This is mainly for use in propagators when they extract a Span to be used as a parent.

Link to this section Types

-type traced_fun(T) :: fun((opentelemetry:span_ctx()) -> T).

Link to this section Callbacks

Link to this section Functions

-spec current_span_ctx() -> opentelemetry:span_ctx() | undefined.
-spec current_span_ctx(otel_ctx:t()) -> opentelemetry:span_ctx() | undefined.
Link to this function

from_remote_span(TraceId, SpanId, Traceflags)

View Source
Returns a span_ctx record with is_recording set to false and is_remote set to true. This is mainly for use in propagators when they extract a Span to be used as a parent.
Link to this function

non_recording_span(TraceId, SpanId, Traceflags)

View Source
Returns a span_ctx record with is_recording set to false. This is mainly for use in propagators when they extract a Span to be used as a parent.
Link to this function

set_current_span(SpanCtx)

View Source
-spec set_current_span(opentelemetry:span_ctx() | undefined) -> opentelemetry:span_ctx() | undefined.
Link to this function

set_current_span(Ctx, SpanCtx)

View Source
-spec set_current_span(otel_ctx:t(), opentelemetry:span_ctx() | undefined) -> otel_ctx:t().
Link to this function

start_span(Tracer, SpanName, Opts)

View Source
Link to this function

start_span(Ctx, Tracer, SpanName, Opts)

View Source
Link to this function

update_logger_process_metadata(Ctx)

View Source
Link to this function

with_span(Tracer, SpanName, Opts, Fun)

View Source
Link to this function

with_span(Ctx, Tracer, SpanName, Opts, Fun)

View Source