opentelemetry::metrics

Trait CallbackRegistration

Source
pub trait CallbackRegistration: Send + Sync {
    // Required method
    fn unregister(&mut self) -> Result<()>;
}
Expand description

A token representing the unique registration of a callback for a set of instruments with a Meter.

Required Methods§

Source

fn unregister(&mut self) -> Result<()>

Removes the callback registration from its associated Meter.

Implementors§