Trait metrics_tracing_context::SpanExt[][src]

pub trait SpanExt {
    fn with_labels<F>(&self, f: F)
    where
        F: FnMut(&Vec<Label>)
; }
Expand description

An extention to the tracing::Span, enabling the access to labels.

Required methods

Run the provided function with a read-only access to labels.

Implementations on Foreign Types

Implementors