pub struct NullObservability;Expand description
Null observability extension - does nothing
Used when no observability is configured. Zero overhead.
Trait Implementations§
Source§impl Extension for NullObservability
impl Extension for NullObservability
Source§fn info(&self) -> ExtensionInfo
fn info(&self) -> ExtensionInfo
Get extension information
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Cast to mutable Any for downcasting
Source§fn init(&mut self) -> KernelResult<()>
fn init(&mut self) -> KernelResult<()>
Initialize the extension
Source§fn shutdown(&mut self) -> KernelResult<()>
fn shutdown(&mut self) -> KernelResult<()>
Shutdown the extension gracefully
Source§impl ObservabilityExtension for NullObservability
impl ObservabilityExtension for NullObservability
Source§fn counter_inc(&self, _name: &str, _value: u64, _labels: &[(&str, &str)])
fn counter_inc(&self, _name: &str, _value: u64, _labels: &[(&str, &str)])
Record a counter increment
Source§fn histogram_observe(&self, _name: &str, _value: f64, _labels: &[(&str, &str)])
fn histogram_observe(&self, _name: &str, _value: f64, _labels: &[(&str, &str)])
Record a histogram observation
Source§fn span_event(&self, _span_id: u64, _name: &str, _attributes: &[(&str, &str)])
fn span_event(&self, _span_id: u64, _name: &str, _attributes: &[(&str, &str)])
Add an event to a span
Source§fn report_health(&self, health: &HealthInfo)
fn report_health(&self, health: &HealthInfo)
Report health status (called periodically by kernel)
Auto Trait Implementations§
impl Freeze for NullObservability
impl RefUnwindSafe for NullObservability
impl Send for NullObservability
impl Sync for NullObservability
impl Unpin for NullObservability
impl UnsafeUnpin for NullObservability
impl UnwindSafe for NullObservability
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more