@ThreadSafe public final class OpenTelemetry extends Object
Tracer
, Meter
and CorrelationContextManager
.
The telemetry objects are lazy-loaded singletons resolved via ServiceLoader
mechanism.
Modifier and Type | Method and Description |
---|---|
static CorrelationContextManager |
getCorrelationContextManager()
Returns a singleton
CorrelationContextManager . |
static MeterProvider |
getMeterProvider()
Returns a singleton
MeterProvider . |
static TracerProvider |
getTracerProvider()
Returns a singleton
TracerProvider . |
public static TracerProvider getTracerProvider()
TracerProvider
.DefaultTracerProvider.getInstance()
.IllegalStateException
- if a specified TracerProvider (via system properties) could not
be found.public static MeterProvider getMeterProvider()
MeterProvider
.DefaultMeterProvider.getInstance()
.IllegalStateException
- if a specified MeterProvider (via system properties) could not be
found.public static CorrelationContextManager getCorrelationContextManager()
CorrelationContextManager
.DefaultCorrelationContextManager.getInstance()
.IllegalStateException
- if a specified manager (via system properties) could not be
found.