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

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

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

Implementations on Foreign Types

impl SpanExt for Span[src]

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

Implementors