[][src]Trait metrics_tracing_context::SpanExt

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

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

Required methods

pub fn with_labels<F>(&self, f: F) where
    F: FnMut(&Vec<Label>), 
[src]

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

Loading content...

Implementations on Foreign Types

impl SpanExt for Span[src]

Loading content...

Implementors

Loading content...