Module otel

Module otel 

Source
Expand description

Thin wrappers around Opentelemetry primitives so downstream crates do not depend on the concrete opentelemetry crate directly.

Structs§

Counter
An instrument that records increasing values.
Histogram
An instrument that records a distribution of values.
KeyValue
A key-value pair describing an attribute.
Meter
Provides access to instrument instances for recording measurements.
SpanContext
Immutable portion of a Span which can be serialized and propagated.
SpanId
An 8-byte value which identifies a given span.
TraceId
A 16-byte value which identifies a given trace.

Enums§

Value
The value part of attribute KeyValue pairs.

Functions§

get_active_span
Executes a closure with a reference to this thread’s current span.
meter
Acquire or create a named Meter.
set_text_map_propagator
Install the provided propagator as the global text map propagator.
shutdown_tracer_provider
Shutdown the global tracer provider, flushing any pending spans.