Skip to main content

ObservationService

Trait ObservationService 

Source
pub trait ObservationService: Send + Sync {
    // Required method
    fn record(&self, kind: &str, observation: &Value) -> Result<()>;
}
Expand description

Durable observation sink used by handlers.

Required Methods§

Source

fn record(&self, kind: &str, observation: &Value) -> Result<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§