Skip to content

Commit baf5718

Browse files
committed
tracing: prepare to release v0.1.37
# 0.1.37 (October 6, 2022) This release of `tracing` incorporates changes from `tracing-core` [v0.1.30][core-0.1.30] and `tracing-attributes` [v0.1.23][0.1.23], including the new `Subscriber::on_register_dispatch` method for performing late initialization after a `Subscriber` is registered as a `Dispatch`, and bugfixes for the `#[instrument]` attribute. Additionally, it fixes instances of the `bare_trait_objects` lint, which is now a warning on `tracing`'s MSRV and will become an error in the next edition. ### Fixed - **attributes**: Incorrect handling of inner attributes in `#[instrument]`ed functions (#2307) - **attributes**: Incorrect location of compiler diagnostic spans generated for type errors in `#[instrument]`ed `async fn`s (#2270) - **attributes**: Updated `syn` dependency to fix compilation with `-Z minimal-versions` (#2246) - `bare_trait_objects` warning in `valueset!` macro expansion (#2308) ### Added - **core**: `Subscriber::on_register_dispatch` method (#2269) - **core**: `WeakDispatch` type and `Dispatch::downgrade()` function (#2293) ### Changed - `tracing-core`: updated to [0.1.30][core-0.1.30] - `tracing-attributes`: updated to [0.1.23][attrs-0.1.23] ### Documented - Added [`tracing-web`] and [`reqwest-tracing`] to related crates (#2283], [#2331) Thanks to new contributors @compiler-errors, @e-nomem, @WorldSEnder, @Xiami2012, and @tl-rodrigo-gryzinski, as well as @jswrenn and @CAD97, for contributing to this release! [core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30 [attrs-0.1.23]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.23 [`tracing-web`]: https://crates.io/crates/tracing-web/ [`reqwest-tracing`]: https://crates.io/crates/reqwest-tracing/
1 parent 07d3fa8 commit baf5718

File tree

4 files changed

+57
-5
lines changed

4 files changed

+57
-5
lines changed

tracing/CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
'# 0.1.37 (October 6, 2022)
2+
3+
This release of `tracing` incorporates changes from `tracing-core`
4+
[v0.1.30][core-0.1.30] and `tracing-attributes` [v0.1.23][0.1.23], including the
5+
new `Subscriber::on_register_dispatch` method for performing late initialization
6+
after a `Subscriber` is registered as a `Dispatch`, and bugfixes for the
7+
`#[instrument]` attribute. Additionally, it fixes instances of the
8+
`bare_trait_objects` lint, which is now a warning on `tracing`'s MSRV and will
9+
become an error in the next edition.
10+
11+
### Fixed
12+
13+
- **attributes**: Incorrect handling of inner attributes in `#[instrument]`ed
14+
functions ([#2307])
15+
- **attributes**: Incorrect location of compiler diagnostic spans generated for
16+
type errors in `#[instrument]`ed `async fn`s ([#2270])
17+
- **attributes**: Updated `syn` dependency to fix compilation with `-Z
18+
minimal-versions` ([#2246])
19+
- `bare_trait_objects` warning in `valueset!` macro expansion ([#2308])
20+
21+
### Added
22+
23+
- **core**: `Subscriber::on_register_dispatch` method ([#2269])
24+
- **core**: `WeakDispatch` type and `Dispatch::downgrade()` function ([#2293])
25+
26+
### Changed
27+
28+
- `tracing-core`: updated to [0.1.30][core-0.1.30]
29+
- `tracing-attributes`: updated to [0.1.23][attrs-0.1.23]
30+
31+
### Documented
32+
33+
- Added [`tracing-web`] and [`reqwest-tracing`] to related crates ([#2283],
34+
[#2331])
35+
36+
Thanks to new contributors @compiler-errors, @e-nomem, @WorldSEnder, @Xiami2012,
37+
and @tl-rodrigo-gryzinski, as well as @jswrenn and @CAD97, for contributing to
38+
this release!
39+
40+
[core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30
41+
[attrs-0.1.23]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.23
42+
[`tracing-web`]: https://crates.io/crates/tracing-web/
43+
[`reqwest-tracing`]: https://crates.io/crates/reqwest-tracing/
44+
[#2246]: https://github.com/tokio-rs/tracing/pull/2246
45+
[#2269]: https://github.com/tokio-rs/tracing/pull/2269
46+
[#2283]: https://github.com/tokio-rs/tracing/pull/2283
47+
[#2270]: https://github.com/tokio-rs/tracing/pull/2270
48+
[#2293]: https://github.com/tokio-rs/tracing/pull/2293
49+
[#2307]: https://github.com/tokio-rs/tracing/pull/2307
50+
[#2308]: https://github.com/tokio-rs/tracing/pull/2308
51+
[#2331]: https://github.com/tokio-rs/tracing/pull/2331
52+
'
153
# 0.1.36 (July 29, 2022)
254

355
This release adds support for owned values and fat pointers as arguments to the

tracing/Cargo.toml

Lines changed: 1 addition & 1 deletion
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.36"
11+
version = "0.1.37"
1212
authors = ["Eliza Weisman <[email protected]>", "Tokio Contributors <[email protected]>"]
1313
license = "MIT"
1414
readme = "README.md"

tracing/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ my_future
250250
is as long as the future's.
251251

252252
The second, and preferred, option is through the
253-
[`#[instrument]`](https://docs.rs/tracing/0.1.36/tracing/attr.instrument.html)
253+
[`#[instrument]`](https://docs.rs/tracing/0.1.37/tracing/attr.instrument.html)
254254
attribute:
255255

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

300-
The [`#[instrument]`](https://docs.rs/tracing/0.1.36/tracing/attr.instrument.html) attribute macro
300+
The [`#[instrument]`](https://docs.rs/tracing/0.1.37/tracing/attr.instrument.html) attribute macro
301301
can reduce some of this boilerplate:
302302

303303
```rust

tracing/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@
817817
//!
818818
//! ```toml
819819
//! [dependencies]
820-
//! tracing = { version = "0.1.36", default-features = false }
820+
//! tracing = { version = "0.1.37", default-features = false }
821821
//! ```
822822
//!
823823
//! <pre class="ignore" style="white-space:normal;font:inherit;">
@@ -900,7 +900,7 @@
900900
//! [flags]: #crate-feature-flags
901901
#![cfg_attr(not(feature = "std"), no_std)]
902902
#![cfg_attr(docsrs, feature(doc_cfg), deny(rustdoc::broken_intra_doc_links))]
903-
#![doc(html_root_url = "https://docs.rs/tracing/0.1.36")]
903+
#![doc(html_root_url = "https://docs.rs/tracing/0.1.37")]
904904
#![doc(
905905
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
906906
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)