Skip to content

Commit

Permalink
subscriber: emit deprecation warnings for "filter"
Browse files Browse the repository at this point in the history
Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Sep 12, 2019
1 parent b5c8a0a commit 96aec85
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tracing-subscriber/src/filter/env/mod.rs
Expand Up @@ -29,6 +29,13 @@ use tracing_core::{
/// A `Layer` which filters spans and events based on a set of filter
/// directives.
// TODO(eliza): document filter directive syntax?
#[cfg_attr(
feature = "filter",
deprecated(
since = "0.1.2",
note = "the `filter` feature flag was renamed to `env-filter` and will be removed in 0.2",
)
)]
#[derive(Debug)]
pub struct EnvFilter {
// TODO: eventually, this should be exposed by the registry.
Expand Down

0 comments on commit 96aec85

Please sign in to comment.