pub struct TracingContextLayer<F> { /* private fields */ }Expand description
TracingContextLayer provides an implementation of a Layer
for TracingContext.
Implementations§
source§impl<F> TracingContextLayer<F>
 
impl<F> TracingContextLayer<F>
sourcepub fn new(label_filter: F) -> Self
 
pub fn new(label_filter: F) -> Self
Creates a new TracingContextLayer.
source§impl TracingContextLayer<IncludeAll>
 
impl TracingContextLayer<IncludeAll>
sourcepub fn all() -> Self
 
pub fn all() -> Self
Creates a new TracingContextLayer.
source§impl TracingContextLayer<Allowlist>
 
impl TracingContextLayer<Allowlist>
sourcepub fn only_allow<I, S>(allowed: I) -> Selfwhere
    I: IntoIterator<Item = S>,
    S: AsRef<str>,
 
pub fn only_allow<I, S>(allowed: I) -> Selfwhere
    I: IntoIterator<Item = S>,
    S: AsRef<str>,
Creates a new TracingContextLayer that only allows labels contained
in a predefined list.