otel_span_utils (opentelemetry v1.0.0-rc.3) View Source

Functional interface for span_ctx and span records.

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

Specs

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

Specs

end_span(opentelemetry:span(), integer() | undefined) -> opentelemetry:span().
Link to this function

start_span(Ctx, Name, Opts)

View Source

Specs

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