Skip to content

Commit d0ef14d

Browse files
authored
tracing: prepare to release v0.1.29 (#1623)
# 0.1.29 (October 5th, 2021 This release adds support for recording `Option<T> 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<T> 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]: #1585 [#1595]: #1596 [#1597]: #1597 [#1600]: #1600 [#1601]: #1601 [#1602]: #1602 [#1605]: #1605 [#1614]: #1614 [#1616]: #1616 [#1617]: #1617
1 parent 6692aaf commit d0ef14d

File tree

4 files changed

+47
-9
lines changed

4 files changed

+47
-9
lines changed

tracing/CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,41 @@
1+
# 0.1.29 (October 5th, 2021
2+
3+
This release adds support for recording `Option<T> where T: Value` as typed
4+
`tracing` field values. It also includes significant performance improvements
5+
for functions annotated with the `#[instrument]` attribute when the generated
6+
span is disabled.
7+
8+
### Changed
9+
10+
- `tracing-core`: updated to v0.1.21
11+
- `tracing-attributes`: updated to v0.1.19
12+
13+
### Added
14+
15+
- **field**: `Value` impl for `Option<T> where T: Value` ([#1585])
16+
- **attributes**: - improved performance when skipping `#[instrument]`-generated
17+
spans below the max level ([#1600], [#1605], [#1614], [#1616], [#1617])
18+
19+
### Fixed
20+
21+
- **instrument**: added missing `Future` implementation for `WithSubscriber`,
22+
making the `WithDispatch` extension trait actually useable ([#1602])
23+
- Documentation fixes and improvements ([#1595], [#1601], [#1597])
24+
25+
Thanks to @brianburgers, @mattiast, @DCjanus, @oli-obk, and @matklad for
26+
contributing to this release!
27+
28+
[#1585]: https://github.com/tokio-rs/tracing/pull/1585
29+
[#1595]: https://github.com/tokio-rs/tracing/pull/1596
30+
[#1597]: https://github.com/tokio-rs/tracing/pull/1597
31+
[#1600]: https://github.com/tokio-rs/tracing/pull/1600
32+
[#1601]: https://github.com/tokio-rs/tracing/pull/1601
33+
[#1602]: https://github.com/tokio-rs/tracing/pull/1602
34+
[#1605]: https://github.com/tokio-rs/tracing/pull/1605
35+
[#1614]: https://github.com/tokio-rs/tracing/pull/1614
36+
[#1616]: https://github.com/tokio-rs/tracing/pull/1616
37+
[#1617]: https://github.com/tokio-rs/tracing/pull/1617
38+
139
# 0.1.28 (September 17th, 2021)
240

341
This release fixes an issue where the RustDoc documentation was rendered

tracing/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "tracing"
88
# - README.md
99
# - Update CHANGELOG.md.
1010
# - Create "v0.1.x" git tag
11-
version = "0.1.28"
11+
version = "0.1.29"
1212
authors = ["Eliza Weisman <eliza@buoyant.io>", "Tokio Contributors <team@tokio.rs>"]
1313
license = "MIT"
1414
readme = "README.md"
@@ -27,9 +27,9 @@ keywords = ["logging", "tracing", "metrics", "async"]
2727
edition = "2018"
2828

2929
[dependencies]
30-
tracing-core = { path = "../tracing-core", version = "0.1.20", default-features = false }
30+
tracing-core = { path = "../tracing-core", version = "0.1.21", default-features = false }
3131
log = { version = "0.4", optional = true }
32-
tracing-attributes = { path = "../tracing-attributes", version = "0.1.16", optional = true }
32+
tracing-attributes = { path = "../tracing-attributes", version = "0.1.18", optional = true }
3333
cfg-if = "1.0.0"
3434
pin-project-lite = "0.2"
3535

tracing/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Application-level tracing for Rust.
1616
[Documentation][docs-url] | [Chat][discord-url]
1717

1818
[crates-badge]: https://img.shields.io/crates/v/tracing.svg
19-
[crates-url]: https://crates.io/crates/tracing/0.1.28
19+
[crates-url]: https://crates.io/crates/tracing/0.1.29
2020
[docs-badge]: https://docs.rs/tracing/badge.svg
21-
[docs-url]: https://docs.rs/tracing/0.1.28
21+
[docs-url]: https://docs.rs/tracing/0.1.29
2222
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
2323
[docs-master-url]: https://tracing-rs.netlify.com/tracing
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -251,7 +251,7 @@ my_future
251251
is as long as the future's.
252252

253253
The second, and preferred, option is through the
254-
[`#[instrument]`](https://docs.rs/tracing/0.1.28/tracing/attr.instrument.html)
254+
[`#[instrument]`](https://docs.rs/tracing/0.1.29/tracing/attr.instrument.html)
255255
attribute:
256256

257257
```rust
@@ -298,7 +298,7 @@ span.in_scope(|| {
298298
// Dropping the span will close it, indicating that it has ended.
299299
```
300300

301-
The [`#[instrument]`](https://docs.rs/tracing/0.1.28/tracing/attr.instrument.html) attribute macro
301+
The [`#[instrument]`](https://docs.rs/tracing/0.1.29/tracing/attr.instrument.html) attribute macro
302302
can reduce some of this boilerplate:
303303

304304
```rust

tracing/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@
795795
//!
796796
//! ```toml
797797
//! [dependencies]
798-
//! tracing = { version = "0.1.28", default-features = false }
798+
//! tracing = { version = "0.1.29", default-features = false }
799799
//! ```
800800
//!
801801
//! <pre class="ignore" style="white-space:normal;font:inherit;">
@@ -847,7 +847,7 @@
847847
//! [flags]: #crate-feature-flags
848848
#![cfg_attr(not(feature = "std"), no_std)]
849849
#![cfg_attr(docsrs, feature(doc_cfg), deny(rustdoc::broken_intra_doc_links))]
850-
#![doc(html_root_url = "https://docs.rs/tracing/0.1.28")]
850+
#![doc(html_root_url = "https://docs.rs/tracing/0.1.29")]
851851
#![doc(
852852
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
853853
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)