Skip to content

Commit b37220c

Browse files
authored
subscriber: prepare to release v0.3.8 (#1905)
# 0.3.8 (Feb 4, 2022) This release adds *experimental* support for recording structured field values using the [`valuable`] crate to the `format::Json` formatter. In particular, user-defined types which are recorded using their [`valuable::Valuable`] implementations will be serialized as JSON objects, rather than using their `fmt::Debug` representation. See [this blog post][post] for details on `valuable`. Note that `valuable` support currently requires `--cfg tracing_unstable`. See the documentation for details. Additionally, this release includes a number of other smaller API improvements. ### Added - **json**: Experimental support for recording [`valuable`] values as structured JSON ([#1862], [#1901]) - **filter**: `Targets::would_enable` method for testing if a `Targets` filter would enable a given target ([#1903]) - **fmt**: `map_event_format`, `map_fmt_fields`, and `map_writer` methods to `fmt::Layer` and `fmt::SubscriberBuilder` ([#1871]) ### Changed - `tracing-core`: updated to [0.1.22][core-0.1.22] ### Fixed - Set `smallvec` minimal version to 1.2.0, to fix compilation errors with `-Z minimal-versions` ([#1890]) - Minor documentation fixes ([#1902], [#1893]) Thanks to @guswynn, @glts, and @lilyball for contributing to this release! [`valuable`]: https://crates.io/crates/valuable [`valuable::Valuable`]: https://docs.rs/valuable/latest/valuable/trait.Valuable.html [post]: https://tokio.rs/blog/2021-05-valuable [core-0.1.22]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.22 [#1862]: #1862 [#1901]: #1901 [#1903]: #1903 [#1871]: #1871 [#1890]: #1890 [#1902]: #1902 [#1893]: #1893
1 parent c661c23 commit b37220c

File tree

4 files changed

+51
-4
lines changed

4 files changed

+51
-4
lines changed

tracing-subscriber/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
# 0.3.8 (Feb 4, 2022)
2+
3+
This release adds *experimental* support for recording structured field
4+
values using the [`valuable`] crate to the `format::Json` formatter. In
5+
particular, user-defined types which are recorded using their
6+
[`valuable::Valuable`] implementations will be serialized as JSON objects,
7+
rather than using their `fmt::Debug` representation. See [this blog post][post]
8+
for details on `valuable`.
9+
10+
Note that `valuable` support currently requires `--cfg tracing_unstable`. See
11+
the documentation for details.
12+
13+
Additionally, this release includes a number of other smaller API improvements.
14+
15+
### Added
16+
17+
- **json**: Experimental support for recording [`valuable`] values as structured
18+
JSON ([#1862], [#1901])
19+
- **filter**: `Targets::would_enable` method for testing if a `Targets` filter
20+
would enable a given target ([#1903])
21+
- **fmt**: `map_event_format`, `map_fmt_fields`, and `map_writer` methods to
22+
`fmt::Layer` and `fmt::SubscriberBuilder` ([#1871])
23+
24+
### Changed
25+
26+
- `tracing-core`: updated to [0.1.22][core-0.1.22]
27+
28+
### Fixed
29+
30+
- Set `smallvec` minimal version to 1.2.0, to fix compilation errors with `-Z
31+
minimal-versions` ([#1890])
32+
- Minor documentation fixes ([#1902], [#1893])
33+
34+
Thanks to @guswynn, @glts, and @lilyball for contributing to this release!
35+
36+
[`valuable`]: https://crates.io/crates/valuable
37+
[`valuable::Valuable`]: https://docs.rs/valuable/latest/valuable/trait.Valuable.html
38+
[post]: https://tokio.rs/blog/2021-05-valuable
39+
[core-0.1.22]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.22
40+
[#1862]: https://github.com/tokio-rs/tracing/pull/1862
41+
[#1901]: https://github.com/tokio-rs/tracing/pull/1901
42+
[#1903]: https://github.com/tokio-rs/tracing/pull/1903
43+
[#1871]: https://github.com/tokio-rs/tracing/pull/1871
44+
[#1890]: https://github.com/tokio-rs/tracing/pull/1890
45+
[#1902]: https://github.com/tokio-rs/tracing/pull/1902
46+
[#1893]: https://github.com/tokio-rs/tracing/pull/1893
47+
148
# 0.3.7 (Jan 25, 2022)
249

350
This release adds combinators for combining filters.

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.3.7"
3+
version = "0.3.8"
44
authors = [
55
"Eliza Weisman <[email protected]>",
66
"David Barsky <[email protected]>",
@@ -38,7 +38,7 @@ valuable = ["tracing-core/valuable", "valuable_crate", "valuable-serde", "tracin
3838
local-time = ["time/local-offset"]
3939

4040
[dependencies]
41-
tracing-core = { path = "../tracing-core", version = "0.1.20" }
41+
tracing-core = { path = "../tracing-core", version = "0.1.22" }
4242

4343
# only required by the filter feature
4444
tracing = { optional = true, path = "../tracing", version = "0.1", default-features = false }

tracing-subscriber/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Utilities for implementing and composing [`tracing`][tracing] subscribers.
2121
[crates-badge]: https://img.shields.io/crates/v/tracing-subscriber.svg
2222
[crates-url]: https://crates.io/crates/tracing-subscriber
2323
[docs-badge]: https://docs.rs/tracing-subscriber/badge.svg
24-
[docs-url]: https://docs.rs/tracing-subscriber/0.3.7
24+
[docs-url]: https://docs.rs/tracing-subscriber/0.3.8
2525
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
2626
[docs-master-url]: https://tracing-rs.netlify.com/tracing_subscriber
2727
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg

tracing-subscriber/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
//! [`time` crate]: https://crates.io/crates/time
161161
//! [`libstd`]: https://doc.rust-lang.org/std/index.html
162162
//! [`liballoc`]: https://doc.rust-lang.org/alloc/index.html
163-
#![doc(html_root_url = "https://docs.rs/tracing-subscriber/0.3.7")]
163+
#![doc(html_root_url = "https://docs.rs/tracing-subscriber/0.3.8")]
164164
#![doc(
165165
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
166166
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)