Nexus API Reference

NoopObservability
in package
implements Observability

FinalYes
Tags
psalm-api

Zero-overhead default provider. Wires up no-op collaborators via constructor injection; all method calls cost nothing when observability is disabled.

Table of Contents

Interfaces

Observability

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

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
Context

isEnabled()

Whether a real telemetry backend is wired. When false, instrumentation call sites should skip work entirely (zero overhead).

public isEnabled() : bool
Return values
bool

shutdown()

Flush pending telemetry and stop the provider. Called once during application shutdown; a no-op provider does nothing.

public shutdown() : void

        
On this page

Search results