NoopObservability
in package
implements
Observability
FinalYes
Tags
Table of Contents
Interfaces
Methods
- __construct() : mixed
- 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
__construct()
public
__construct([Tracer $tracer = new NoopTracer() ][, Meter $meter = new NoopMeter() ][, ContextPropagator $propagator = new NoopContextPropagator() ]) : mixed
Parameters
- $tracer : Tracer = new NoopTracer()
- $meter : Meter = new NoopMeter()
- $propagator : ContextPropagator = new NoopContextPropagator()
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