View Source otel_tracer_default (opentelemetry v1.4.0)

Link to this section Summary

Link to this section Functions

Link to this function

start_span(Ctx, _, Name, Opts)

View Source
-spec start_span(otel_ctx:t(),
           opentelemetry:tracer(),
           opentelemetry:span_name(),
           otel_span:start_opts()) ->
              opentelemetry:span_ctx().
Starts an inactive Span and returns its SpanCtx.
Link to this function

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

View Source
-spec with_span(otel_ctx:t(),
          opentelemetry:tracer(),
          opentelemetry:span_name(),
          otel_span:start_opts(),
          otel_tracer:traced_fun(T)) ->
             T.