Skip to content

Commit c87fbe5

Browse files
committed
subscriber: prepare to release 0.2.21
# 0.2.21 (September 12, 2021) This release introduces the [`Filter`] trait, a new API for [per-layer filtering][plf]. This allows controlling which spans and events are recorded by various layers individually, rather than globally. In addition, it adds a new [`Targets`] filter, which provides a lighter-weight version of the filtering provided by [`EnvFilter`], as well as other smaller API improvements and fixes. ### Deprecated - **registry**: `SpanRef::parent_id`, which cannot properly support per-layer filtering. Use `.parent().map(SpanRef::id)` instead. ([#1523]) ### Fixed - **layer** `Context` methods that are provided when the `Subscriber` implements `LookupSpan` no longer require the "registry" feature flag ([#1525]) - **layer** `fmt::Debug` implementation for `Layered` no longer requires the `S` type parameter to implement `Debug` ([#1528]) ### Added - **registry**: `Filter` trait, `Filtered` type, `Layer::with_filter` method, and other APIs for per-layer filtering ([#1523]) - **filter**: `FilterFn` and `DynFilterFn` types that implement global (`Layer`) and per-layer (`Filter`) filtering for closures and function pointers ([#1523]) - **filter**: `Targets` filter, which implements a lighter-weight form of `EnvFilter`-like filtering ([#1550]) - **env-filter**: Added support for filtering on floating-point values ([#1507]) - **layer**: `Layer::on_layer` callback, called when layering the `Layer` onto a `Subscriber` ([#1523]) - **layer**: `Layer` implementations for `Box<L>` and `Arc<L>` where `L: Layer` ([#1536]) - **layer**: `Layer` implementations for `Box<dyn Layer<S> + Send + Sync + 'static>` and `Arc<dyn Layer<S> + Send + Sync + 'static>` ([#1536]) - A number of small documentation fixes and improvements ([#1553], [#1544], [#1539], [#1524]) Special thanks to new contributors @jsgf and @maxburke for contributing to this release! [`Filter`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/layer/trait.Filter.html [`plf`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/layer/index.html#per-layer-filtering [`Targets`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/filter/struct.Targets.html [`EnvFilter`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/filter/struct.EnvFilter.html [#1507]: #1507 [#1523]: #1523 [#1524]: #1524 [#1525]: #1525 [#1528]: #1528 [#1539]: #1539 [#1544]: #1544 [#1550]: #1550 [#1553]: #1553
1 parent c0a806d commit c87fbe5

File tree

3 files changed

+53
-4
lines changed

3 files changed

+53
-4
lines changed

tracing-subscriber/CHANGELOG.md

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,60 @@
1-
# Unreleased
1+
# 0.2.21 (September 12, 2021)
2+
3+
This release introduces the [`Filter`] trait, a new API for [per-layer
4+
filtering][plf]. This allows controlling which spans and events are recorded by
5+
various layers individually, rather than globally.
6+
7+
In addition, it adds a new [`Targets`] filter, which provides a lighter-weight
8+
version of the filtering provided by [`EnvFilter`], as well as other smaller API
9+
improvements and fixes.
210

311
### Deprecated
412

513
- **registry**: `SpanRef::parent_id`, which cannot properly support per-layer
614
filtering. Use `.parent().map(SpanRef::id)` instead. ([#1523])
715

16+
### Fixed
17+
18+
- **layer** `Context` methods that are provided when the `Subscriber` implements
19+
`LookupSpan` no longer require the "registry" feature flag ([#1525])
20+
- **layer** `fmt::Debug` implementation for `Layered` no longer requires the `S`
21+
type parameter to implement `Debug` ([#1528])
22+
23+
### Added
24+
25+
- **registry**: `Filter` trait, `Filtered` type, `Layer::with_filter` method,
26+
and other APIs for per-layer filtering ([#1523])
27+
- **filter**: `FilterFn` and `DynFilterFn` types that implement global (`Layer`)
28+
and per-layer (`Filter`) filtering for closures and function pointers
29+
([#1523])
30+
- **filter**: `Targets` filter, which implements a lighter-weight form of
31+
`EnvFilter`-like filtering ([#1550])
32+
- **env-filter**: Added support for filtering on floating-point values ([#1507])
33+
- **layer**: `Layer::on_layer` callback, called when layering the `Layer` onto a
34+
`Subscriber` ([#1523])
35+
- **layer**: `Layer` implementations for `Box<L>` and `Arc<L>` where `L: Layer`
36+
([#1536])
37+
- **layer**: `Layer` implementations for `Box<dyn Layer<S> + Send + Sync +
38+
'static>` and `Arc<dyn Layer<S> + Send + Sync + 'static>` ([#1536])
39+
- A number of small documentation fixes and improvements ([#1553], [#1544],
40+
[#1539], [#1524])
41+
42+
Special thanks to new contributors @jsgf and @maxburke for contributing to this
43+
release!
44+
45+
[`Filter`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/layer/trait.Filter.html
46+
[`plf`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/layer/index.html#per-layer-filtering
47+
[`Targets`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/filter/struct.Targets.html
48+
[`EnvFilter`]: https://docs.rs/tracing-subscriber/0.2.21/tracing_subscriber/filter/struct.EnvFilter.html
49+
[#1507]: https://github.com/tokio-rs/tracing/pull/1507
850
[#1523]: https://github.com/tokio-rs/tracing/pull/1523
51+
[#1524]: https://github.com/tokio-rs/tracing/pull/1524
52+
[#1525]: https://github.com/tokio-rs/tracing/pull/1525
53+
[#1528]: https://github.com/tokio-rs/tracing/pull/1528
54+
[#1539]: https://github.com/tokio-rs/tracing/pull/1539
55+
[#1544]: https://github.com/tokio-rs/tracing/pull/1544
56+
[#1550]: https://github.com/tokio-rs/tracing/pull/1550
57+
[#1553]: https://github.com/tokio-rs/tracing/pull/1553
958

1059
# 0.2.20 (August 17, 2021)
1160

tracing-subscriber/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tracing-subscriber"
3-
version = "0.2.20"
3+
version = "0.2.21"
44
authors = [
55
"Eliza Weisman <eliza@buoyant.io>",
66
"David Barsky <me@davidbarsky.com>",
@@ -31,7 +31,7 @@ registry = ["sharded-slab", "thread_local"]
3131
json = ["tracing-serde", "serde", "serde_json"]
3232

3333
[dependencies]
34-
tracing-core = { path = "../tracing-core", version = "0.1.17" }
34+
tracing-core = { path = "../tracing-core", version = "0.1.20" }
3535

3636
# only required by the filter feature
3737
tracing = { optional = true, path = "../tracing", version = "0.1", default-features = false, features = ["std"] }

tracing-subscriber/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
//! [`env_logger` crate]: https://crates.io/crates/env_logger
9292
//! [`parking_lot`]: https://crates.io/crates/parking_lot
9393
//! [`registry`]: registry/index.html
94-
#![doc(html_root_url = "https://docs.rs/tracing-subscriber/0.2.20")]
94+
#![doc(html_root_url = "https://docs.rs/tracing-subscriber/0.2.21")]
9595
#![doc(
9696
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
9797
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)