View Source otel_span_utils (opentelemetry v1.3.0)
Link to this section Summary
Functions
Set the end time for a span if it hasn't been set before.
Link to this section Functions
-spec end_span(opentelemetry:span()) -> opentelemetry:span().
-spec end_span(opentelemetry:span(), integer() | undefined) -> opentelemetry:span().
-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}.