Skip to main content

TelemetryExt

Trait TelemetryExt 

Source
pub trait TelemetryExt {
    // Required method
    fn start(&self, operation: &'static str) -> OpTimer;
}
Expand description

Ergonomic entry point for instrumenting an operation against a shared telemetry sink.

Required Methods§

Source

fn start(&self, operation: &'static str) -> OpTimer

Begin timing operation, returning an OpTimer that records on drop.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl TelemetryExt for Arc<dyn Telemetry>

Source§

fn start(&self, operation: &'static str) -> OpTimer

Implementors§