Skip to main content

Observer

Trait Observer 

Source
pub trait Observer:
    Send
    + Sync
    + 'static {
    // Required method
    fn observe(&self, observation: &Observation<'_>);
}
Expand description

Receives synchronous, backend-neutral operational observations.

Implementations must return quickly and should hand expensive work to another thread. Backends invoke observers only after releasing internal locks and finalizing database transactions. A panic from an observer is caught and ignored so telemetry cannot change an admission result.

Observations deliberately contain no subject keys, policy fingerprints, backend error text, or other high-cardinality sensitive values.

Required Methods§

Source

fn observe(&self, observation: &Observation<'_>)

Records one operational observation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§