Module tracing_subscriber::filter
source · 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.
Structs§
- 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.
- A filter implemented by a closure or function pointer that determines whether a given span or event is enabled, based on its
Metadata
. - A filter comparable to a verbosity
Level
. - Indicates that a string could not be parsed to a valid level.
Functions§
- Constructs a
DynFilterFn
from a function or closure that returnstrue
if a span or event should be enabled within a particular span context.