Observability
in
Tags
Table of Contents
Methods
- currentContext() : Context
- Returns the ambient active context — the span currently in scope — for injection into outgoing carriers (message metadata / HTTP headers).
- isEnabled() : bool
- Whether a real telemetry backend is wired. When false, instrumentation call sites should skip work entirely (zero overhead).
- meter() : Meter
- propagator() : ContextPropagator
- shutdown() : void
- Flush pending telemetry and stop the provider. Called once during application shutdown; a no-op provider does nothing.
- tracer() : Tracer
Methods
currentContext()
Returns the ambient active context — the span currently in scope — for injection into outgoing carriers (message metadata / HTTP headers).
public
currentContext() : Context
Return values
ContextisEnabled()
Whether a real telemetry backend is wired. When false, instrumentation call sites should skip work entirely (zero overhead).
public
isEnabled() : bool
Return values
boolmeter()
public
meter() : Meter
Return values
Meterpropagator()
public
propagator() : ContextPropagator
Return values
ContextPropagatorshutdown()
Flush pending telemetry and stop the provider. Called once during application shutdown; a no-op provider does nothing.
public
shutdown() : void
tracer()
public
tracer() : Tracer