pub struct CompositeObserver { /* private fields */ }Expand description
Composite observer that dispatches to multiple backends.
Useful for sending telemetry to both local logs and external systems (e.g., Prometheus + structured logging).
Implementations§
Trait Implementations§
Source§impl Observer for CompositeObserver
impl Observer for CompositeObserver
Source§fn record_event(&self, event: &ObserverEvent)
fn record_event(&self, event: &ObserverEvent)
Record a discrete lifecycle event. Read more
Source§fn record_metric(&self, metric: &ObserverMetric)
fn record_metric(&self, metric: &ObserverMetric)
Record a numeric metric sample. Read more
Auto Trait Implementations§
impl Freeze for CompositeObserver
impl !RefUnwindSafe for CompositeObserver
impl Send for CompositeObserver
impl Sync for CompositeObserver
impl Unpin for CompositeObserver
impl UnsafeUnpin for CompositeObserver
impl !UnwindSafe for CompositeObserver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more