Skip to main content

RuntimeObserver

Trait RuntimeObserver 

Source
pub trait RuntimeObserver: Send + Sync {
    // Required method
    fn observe(&self, observation: RuntimeObservation);

    // Provided method
    fn include_content(&self) -> bool { ... }
}
Expand description

Embedder-owned, non-blocking observation port.

Required Methods§

Source

fn observe(&self, observation: RuntimeObservation)

Provided Methods§

Source

fn include_content(&self) -> bool

Whether operation producers should attach full input/output content to finished observations. Defaults to false — observations stay content-safe unless an embedder explicitly opts in.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§