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;stdoralloc
Modules§
- combinator
registryandstd - Filter combinators
- targets
stdoralloc - A filter that enables or disables spans and events based on their target and level.
Structs§
- BadField
Name env-filterandstd - Indicates that a field name specified in a filter directive was invalid.
- Builder
env-filterandstd - A builder for constructing new
EnvFilters. - Directive
env-filterandstd - A single filtering directive.
- 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.
- EnvFilter
env-filterandstd - A
Subscriberwhich filters spans and events based on a set of filter directives. - 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 registryandstd - Uniquely identifies an individual
Filterinstance in the context of a collector. - Filtered
registryandstd - A
Subscribethat wraps an innerSubscribeand adds aFilterwhich controls what spans and events are enabled for that subscriber. - From
EnvError env-filterandstd - Indicates that an error occurred while parsing a
EnvFilterfrom an environment variable. - 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 stdoralloc - Indicates that a string could not be parsed as a filtering directive.
Traits§
- Filter
Ext registryandstd - Extension trait adding combinators for combining
Filter.
Functions§
- dynamic_
filter_ fn - Constructs a
DynFilterFnfrom a function or closure that returnstrueif a span or event should be enabled within a particular span context. - filter_
fn - Constructs a
FilterFn, from a function or closure that returnstrueif a span or event should be enabled, based on itsMetadata.