Skip to content

noop

Zero-cost no-op implementations for observability when features are disabled

No-op observability plugin that does nothing

This implementation provides zero runtime cost when observability is disabled. All methods are inlined and compile to nothing in release builds.

Methods

fn new() -> Self

Create a new no-op plugin

fn shared() -> Arc<Self>

Create an Arc’d no-op plugin for sharing

No-op metrics collector

Methods

fn new() -> Self

No-op structured logger

Methods

fn new() -> Self
fn with_level(level: LogLevel) -> Self
fn create_noop_plugin() -> Box<dyn ObservabilityPlugin>

Convenience function to create a no-op plugin when observability is disabled

fn create_shared_noop_plugin() -> Arc<dyn ObservabilityPlugin>

Convenience function to create a shared no-op plugin