Skip to main content

RuntimeTelemetryScope

Trait RuntimeTelemetryScope 

Source
pub trait RuntimeTelemetryScope: Send {
    // Required methods
    fn success(&mut self, attributes: BTreeMap<String, RuntimeAttributeValue>);
    fn failure(&mut self, error_type: &str);

    // Provided method
    fn with_context(&self, callback: &mut dyn FnMut()) { ... }
}

Required Methods§

Source

fn success(&mut self, attributes: BTreeMap<String, RuntimeAttributeValue>)

Source

fn failure(&mut self, error_type: &str)

Provided Methods§

Source

fn with_context(&self, callback: &mut dyn FnMut())

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§