Skip to content

Commit 072e02d

Browse files
committed
chore: prepare tracing 0.1.42
# 0.1.42 (November 30, 2025) ### Added - **attributes**: Support constant expressions as instrument field names ([#3158]) - **core**: Improve code generation at trace points significantly ([#3398]) ### Fixed - Fix perf regression when `release_max_level_*` not set ([#3373]) - Use imported instead of fully qualified path ([#3374]) - Make `valueset` macro sanitary ([#3382]) ### Documented - **core**: Add missing `dyn` keyword in `Visit` documentation code sample ([#3387]) [#3158]: https://github.com/tokio-rs/tracing/pull/#3158 [#3373]: https://github.com/tokio-rs/tracing/pull/#3373 [#3374]: https://github.com/tokio-rs/tracing/pull/#3374 [#3382]: https://github.com/tokio-rs/tracing/pull/#3382 [#3387]: https://github.com/tokio-rs/tracing/pull/#3387 [#3398]: https://github.com/tokio-rs/tracing/pull/#3398
1 parent 9751b6e commit 072e02d

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed

tracing/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# 0.1.42 (November 30, 2025)
2+
3+
### Added
4+
5+
- **attributes**: Support constant expressions as instrument field names ([#3158])
6+
- **core**: Improve code generation at trace points significantly ([#3398])
7+
8+
### Fixed
9+
10+
- Fix perf regression when `release_max_level_*` not set ([#3373])
11+
- Use imported instead of fully qualified path ([#3374])
12+
- Make `valueset` macro sanitary ([#3382])
13+
14+
### Documented
15+
16+
- **core**: Add missing `dyn` keyword in `Visit` documentation code sample ([#3387])
17+
18+
[#3158]: https://github.com/tokio-rs/tracing/pull/#3158
19+
[#3373]: https://github.com/tokio-rs/tracing/pull/#3373
20+
[#3374]: https://github.com/tokio-rs/tracing/pull/#3374
21+
[#3382]: https://github.com/tokio-rs/tracing/pull/#3382
22+
[#3387]: https://github.com/tokio-rs/tracing/pull/#3387
23+
[#3398]: https://github.com/tokio-rs/tracing/pull/#3398
24+
125
# 0.1.41 (November 27, 2024)
226

327
[ [crates.io][crate-0.1.41] ] | [ [docs.rs][docs-0.1.41] ]

tracing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "tracing"
55
# - Update doc url in README.md.
66
# - Update CHANGELOG.md.
77
# - Create "tracing-0.1.x" git tag
8-
version = "0.1.41"
8+
version = "0.1.42"
99
authors = ["Eliza Weisman <[email protected]>", "Tokio Contributors <[email protected]>"]
1010
license = "MIT"
1111
readme = "README.md"

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
19+
[crates-url]: https://crates.io/crates/tracing/0.1.42
2020
[docs-badge]: https://docs.rs/tracing/badge.svg
21-
[docs-url]: https://docs.rs/tracing
21+
[docs-url]: https://docs.rs/tracing/0.1.42
2222
[docs-v0.2.x-badge]: https://img.shields.io/badge/docs-v0.2.x-blue
2323
[docs-v0.2.x-url]: https://tracing.rs/tracing
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -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.41/tracing/attr.instrument.html)
253+
[`#[instrument]`](https://docs.rs/tracing/0.1.42/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.41/tracing/attr.instrument.html) attribute macro
300+
The [`#[instrument]`](https://docs.rs/tracing/0.1.42/tracing/attr.instrument.html) attribute macro
301301
can reduce some of this boilerplate:
302302

303303
```rust

0 commit comments

Comments
 (0)