[][src]Module opentelemetry::global

OpenTelemetry global Tracer and Meter singletons.

Structs

BoxedSpan

Boxed span wraps a generic trait object so that BoxedTracers can return whichever type of span they were configured to use.

GlobalTracer

GlobalTracer maintains a global singleton that allows any thread to access the same generic Tracer implementation.

Traits

BoxedTracer

Boxed Tracer allows GlobalTracer's to contain and use a Tracer type object.

Functions

global_meter

Returns NoopMeter for now

global_tracer

Returns a reference to the global Tracer

set_tracer

Assigns the global Tracer