From dfe416a2f515dc996b58d727306f2ca4e706f403 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Tue, 5 Oct 2021 18:39:55 -0700 Subject: [PATCH] tracing: prepare to release v0.1.29 (#1623) # 0.1.29 (October 5th, 2021 This release adds support for recording `Option where T: Value` as typed `tracing` field values. It also includes significant performance improvements for functions annotated with the `#[instrument]` attribute when the generated span is disabled. ### Changed - `tracing-core`: updated to v0.1.21 - `tracing-attributes`: updated to v0.1.19 ### Added - **field**: `Value` impl for `Option where T: Value` ([#1585]) - **attributes**: - improved performance when skipping `#[instrument]`-generated spans below the max level ([#1600], [#1605], [#1614], [#1616], [#1617]) ### Fixed - **instrument**: added missing `Future` implementation for `WithSubscriber`, making the `WithDispatch` extension trait actually useable ([#1602]) - Documentation fixes and improvements ([#1595], [#1601], [#1597]) Thanks to @brianburgers, @mattiast, @DCjanus, @oli-obk, and @matklad for contributing to this release! [#1585]: https://github.com/tokio-rs/tracing/pull/1585 [#1595]: https://github.com/tokio-rs/tracing/pull/1596 [#1597]: https://github.com/tokio-rs/tracing/pull/1597 [#1600]: https://github.com/tokio-rs/tracing/pull/1600 [#1601]: https://github.com/tokio-rs/tracing/pull/1601 [#1602]: https://github.com/tokio-rs/tracing/pull/1602 [#1605]: https://github.com/tokio-rs/tracing/pull/1605 [#1614]: https://github.com/tokio-rs/tracing/pull/1614 [#1616]: https://github.com/tokio-rs/tracing/pull/1616 [#1617]: https://github.com/tokio-rs/tracing/pull/1617 --- tracing/CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ tracing/README.md | 4 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) diff --git a/tracing/CHANGELOG.md b/tracing/CHANGELOG.md index 8d8bac4b1..60a1b00f1 100644 --- a/tracing/CHANGELOG.md +++ b/tracing/CHANGELOG.md @@ -1,3 +1,41 @@ +# 0.1.29 (October 5th, 2021 + +This release adds support for recording `Option where T: Value` as typed +`tracing` field values. It also includes significant performance improvements +for functions annotated with the `#[instrument]` attribute when the generated +span is disabled. + +### Changed + +- `tracing-core`: updated to v0.1.21 +- `tracing-attributes`: updated to v0.1.19 + +### Added + +- **field**: `Value` impl for `Option where T: Value` ([#1585]) +- **attributes**: - improved performance when skipping `#[instrument]`-generated + spans below the max level ([#1600], [#1605], [#1614], [#1616], [#1617]) + +### Fixed + +- **instrument**: added missing `Future` implementation for `WithSubscriber`, + making the `WithDispatch` extension trait actually useable ([#1602]) +- Documentation fixes and improvements ([#1595], [#1601], [#1597]) + +Thanks to @brianburgers, @mattiast, @DCjanus, @oli-obk, and @matklad for +contributing to this release! + +[#1585]: https://github.com/tokio-rs/tracing/pull/1585 +[#1595]: https://github.com/tokio-rs/tracing/pull/1596 +[#1597]: https://github.com/tokio-rs/tracing/pull/1597 +[#1600]: https://github.com/tokio-rs/tracing/pull/1600 +[#1601]: https://github.com/tokio-rs/tracing/pull/1601 +[#1602]: https://github.com/tokio-rs/tracing/pull/1602 +[#1605]: https://github.com/tokio-rs/tracing/pull/1605 +[#1614]: https://github.com/tokio-rs/tracing/pull/1614 +[#1616]: https://github.com/tokio-rs/tracing/pull/1616 +[#1617]: https://github.com/tokio-rs/tracing/pull/1617 + # 0.1.28 (September 17th, 2021) This release fixes an issue where the RustDoc documentation was rendered diff --git a/tracing/README.md b/tracing/README.md index 3c68f1527..2c485fb57 100644 --- a/tracing/README.md +++ b/tracing/README.md @@ -250,7 +250,7 @@ my_future is as long as the future's. The second, and preferred, option is through the -[`#[instrument]`](https://docs.rs/tracing/0.1.28/tracing/attr.instrument.html) +[`#[instrument]`](https://docs.rs/tracing/0.1.29/tracing/attr.instrument.html) attribute: ```rust @@ -297,7 +297,7 @@ span.in_scope(|| { // Dropping the span will close it, indicating that it has ended. ``` -The [`#[instrument]`](https://docs.rs/tracing/0.1.28/tracing/attr.instrument.html) attribute macro +The [`#[instrument]`](https://docs.rs/tracing/0.1.29/tracing/attr.instrument.html) attribute macro can reduce some of this boilerplate: ```rust