Trait MetricsIntercept

Source
pub trait MetricsIntercept:
    Debug
    + Clone
    + Send
    + Sync
    + Unpin
    + 'static {
    // Provided method
    fn observe(&self, labels: MetricLabels, value: MetricValue) { ... }
}
Expand description

The interceptor for metrics.

All metrics related libs should implement this trait to observe opendal’s internal operations.

Provided Methods§

Source

fn observe(&self, labels: MetricLabels, value: MetricValue)

Observe the metric value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§