View Source otel_span_utils (opentelemetry v1.4.0)

Functional interface for span_ctx and span records.

Link to this section Summary

Link to this section Functions

-spec end_span(opentelemetry:span()) -> opentelemetry:span().
Set the end time for a span if it hasn't been set before.
Link to this function

end_span(Span, Timestamp)

View Source
-spec end_span(#span{}, integer() | undefined) -> opentelemetry:span().
Link to this function

start_span(Ctx, Name, Sampler, IdGenerator, Opts)

View Source
-spec start_span(otel_ctx:t(),
           opentelemetry:span_name(),
           otel_sampler:t(),
           otel_id_generator:t(),
           otel_span:start_opts()) ->
              {opentelemetry:span_ctx(), opentelemetry:span() | undefined}.