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]
fn with_labels<F>(&self, f: F) where
F: FnMut(&Vec<Label>),
[src]Run the provided function with a read-only access to labels.