Expand description
Subscribers that control which spans and events are enabled by the wrapped collector.
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 Subscribe
implementations,
see the subscribe
module documentation.
Re-exports§
pub use self::targets::Targets;
std
oralloc
Modules§
- combinator
registry
andstd
Filter combinators - targets
std
oralloc
Structs§
- BadField
Name env-filter
andstd
Indicates that a field name specified in a filter directive was invalid. - Builder
env-filter
andstd
- Directive
env-filter
andstd
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
andstd
ASubscriber
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
. - Filter
Id registry
andstd
- Filtered
registry
andstd
- From
EnvError env-filter
andstd
Indicates that an error occurred while parsing aEnvFilter
from an environment variable. - A filter comparable to a verbosity
Level
. - 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 combiningFilter
.
Functions§
- Constructs a
DynFilterFn
from a function or closure that returnstrue
if a span or event should be enabled within a particular span context.