Expand description
Layer
s that control which spans and events are enabled by the wrapped
subscriber.
This module contains a number of types that provide implementations of
various strategies for filtering which spans and events are enabled. For
details on filtering spans and events using Layer
s, see the
layer
module’s documentation.
Re-exports§
pub use self::targets::Targets;
std
oralloc
Modules§
- combinator
registry
andstd
- Filter combinators
- targets
std
oralloc
- A filter that enables or disables spans and events based on their target and level.
Structs§
- DynFilter
Fn - A filter implemented by a closure or function pointer that determines whether a given span or event is enabled dynamically, potentially based on the current span context.
- Filter
Fn - A filter implemented by a closure or function pointer that
determines whether a given span or event is enabled, based on its
Metadata
. - Filter
Id registry
andstd
- Uniquely identifies an individual
Filter
instance in the context of aSubscriber
. - Filtered
registry
andstd
- A
Layer
that wraps an innerLayer
and adds aFilter
which controls what spans and events are enabled for that layer. - Level
Filter - A filter comparable to a verbosity
Level
. - Level
Parse Error - Indicates that a string could not be parsed to a valid level.
- Parse
Error std
oralloc
- Indicates that a string could not be parsed as a filtering directive.
Traits§
- Filter
Ext registry
andstd
- Extension trait adding combinators for combining
Filter
.
Functions§
- dynamic_
filter_ fn - Constructs a
DynFilterFn
from a function or closure that returnstrue
if a span or event should be enabled within a particular span context. - filter_
fn - Constructs a
FilterFn
, from a function or closure that returnstrue
if a span or event should be enabled, based on itsMetadata
.