Skip to content

Commit 5bd5505

Browse files
authored
chore: prepare tracing 0.1.42 (#3418)
# 0.1.42 (November 26, 2025) ### Important The [`Span::record_all`] method has been removed from the documented API. It was always unsuable via the documented API as it requried a `ValueSet` which has no publically documented constructors. The method remains, but should not be used outside of `tracing` macros. ### Added - **attributes**: Support constant expressions as instrument field names ([#3158]) - Add `record_all!` macro for recording multiple values in one call ([#3227]) - **core**: Improve code generation at trace points significantly ([#3398]) ### Changed - `tracing-core`: updated to 0.1.35 ([#3414]) - `tracing-attributes`: updated to 0.1.31 ([#3417]) ### Fixed - Fix "name / parent" variant of `event!` ([#2983]) - Remove 'r#' prefix from raw identifiers in field names ([#3130]) - 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]) [#2983]: https://github.com/tokio-rs/tracing/pull/#2983 [#3130]: https://github.com/tokio-rs/tracing/pull/#3130 [#3158]: https://github.com/tokio-rs/tracing/pull/#3158 [#3227]: https://github.com/tokio-rs/tracing/pull/#3227 [#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 [#3414]: https://github.com/tokio-rs/tracing/pull/#3414 [#3417]: https://github.com/tokio-rs/tracing/pull/#3417 [`Span::record_all`]: https://docs.rs/tracing/0.1.41/tracing/struct.Span.html#method.record_all
1 parent 5508623 commit 5bd5505

File tree

6 files changed

+54
-9
lines changed

6 files changed

+54
-9
lines changed

tracing-attributes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ syn = { version = "2.0", default-features = false, features = [
4949
quote = "1.0.20"
5050

5151
[dev-dependencies]
52-
tracing = { path = "../tracing", version = "0.1.35" }
52+
tracing = { path = "../tracing", version = "0.1.42" }
5353
tracing-mock = { path = "../tracing-mock" }
5454
tokio-test = "0.4.2"
5555
tracing-subscriber = { path = "../tracing-subscriber", version = "0.3.0", features = [

tracing-mock/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ edition = "2018"
2929
rust-version = "1.65.0"
3030

3131
[dependencies]
32-
tracing = { path = "../tracing", version = "0.1.41", features = ["std", "attributes"], default-features = false }
32+
tracing = { path = "../tracing", version = "0.1.42", features = ["std", "attributes"], default-features = false }
3333
tracing-core = { path = "../tracing-core", version = "0.1.28", default-features = false }
3434
tracing-subscriber = { path = "../tracing-subscriber", version = "0.3", default-features = false, features = ["registry"], optional = true }
3535

tracing-subscriber/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ regex = []
4444
tracing-core = { path = "../tracing-core", version = "0.1.35", default-features = false }
4545

4646
# only required by the filter feature
47-
tracing = { optional = true, path = "../tracing", version = "0.1.41", default-features = false }
47+
tracing = { optional = true, path = "../tracing", version = "0.1.42", default-features = false }
4848
matchers = { optional = true, version = "0.2.0" }
4949
# required to have matchers::BuildError implement std::error::Error
5050
regex-automata = { optional = true, version = "0.4", default-features = false, features = ["std"] }
@@ -74,7 +74,7 @@ valuable_crate = { package = "valuable", version = "0.1.0", optional = true, def
7474
valuable-serde = { version = "0.1.0", optional = true, default-features = false }
7575

7676
[dev-dependencies]
77-
tracing = { path = "../tracing", version = "0.1.41" }
77+
tracing = { path = "../tracing", version = "0.1.42" }
7878
tracing-mock = { path = "../tracing-mock", features = ["tracing-subscriber"] }
7979
log = "0.4.17"
8080
tracing-log = { path = "../tracing-log", version = "0.2.0" }

tracing/CHANGELOG.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,48 @@
1+
# 0.1.42 (November 26, 2025)
2+
3+
### Important
4+
5+
The [`Span::record_all`] method has been removed from the documented API. It
6+
was always unsuable via the documented API as it requried a `ValueSet` which
7+
has no publically documented constructors. The method remains, but should not
8+
be used outside of `tracing` macros.
9+
10+
### Added
11+
12+
- **attributes**: Support constant expressions as instrument field names ([#3158])
13+
- Add `record_all!` macro for recording multiple values in one call ([#3227])
14+
- **core**: Improve code generation at trace points significantly ([#3398])
15+
16+
### Changed
17+
18+
- `tracing-core`: updated to 0.1.35 ([#3414])
19+
- `tracing-attributes`: updated to 0.1.31 ([#3417])
20+
21+
### Fixed
22+
23+
- Fix "name / parent" variant of `event!` ([#2983])
24+
- Remove 'r#' prefix from raw identifiers in field names ([#3130])
25+
- Fix perf regression when `release_max_level_*` not set ([#3373])
26+
- Use imported instead of fully qualified path ([#3374])
27+
- Make `valueset` macro sanitary ([#3382])
28+
29+
### Documented
30+
31+
- **core**: Add missing `dyn` keyword in `Visit` documentation code sample ([#3387])
32+
33+
[#2983]: https://github.com/tokio-rs/tracing/pull/#2983
34+
[#3130]: https://github.com/tokio-rs/tracing/pull/#3130
35+
[#3158]: https://github.com/tokio-rs/tracing/pull/#3158
36+
[#3227]: https://github.com/tokio-rs/tracing/pull/#3227
37+
[#3373]: https://github.com/tokio-rs/tracing/pull/#3373
38+
[#3374]: https://github.com/tokio-rs/tracing/pull/#3374
39+
[#3382]: https://github.com/tokio-rs/tracing/pull/#3382
40+
[#3387]: https://github.com/tokio-rs/tracing/pull/#3387
41+
[#3398]: https://github.com/tokio-rs/tracing/pull/#3398
42+
[#3414]: https://github.com/tokio-rs/tracing/pull/#3414
43+
[#3417]: https://github.com/tokio-rs/tracing/pull/#3417
44+
[`Span::record_all`]: https://docs.rs/tracing/0.1.41/tracing/struct.Span.html#method.record_all
45+
146
# 0.1.41 (November 27, 2024)
247

348
[ [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)