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.
Re-exports
pub use self::targets::Targets;
Modules
combinator
registry
and std
Filter combinators
Structs
BadFieldName
env-filter
and std
Indicates that a field name specified in a filter directive was invalid.
Directive
env-filter
and std
A single filtering directive.
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.
EnvFilter
env-filter
and std
A
Layer
which filters spans and events based on a set of filter
directives.A filter implemented by a closure or function pointer that
determines whether a given span or event is enabled, based on its
Metadata
.FilterId
registry
and std
Uniquely identifies an individual
Filter
instance in the context of
a Subscriber
.Filtered
registry
and std
FromEnvError
env-filter
and std
Indicates that an error occurred while parsing a
EnvFilter
from an
environment variable.A filter comparable to a verbosity
Level
.Indicates that a string could not be parsed to a valid level.
ParseError
std
or alloc
Indicates that a string could not be parsed as a filtering directive.
Traits
FilterExt
registry
and std
Extension trait adding combinators for combining
Filter
.Functions
Constructs a
DynFilterFn
from a function or closure that returns true
if a span or event should be enabled within a particular span context.