Skip to content

Commit a5371b7

Browse files
committed
chore: prepare tracing 0.1.41
# 0.1.41 (November 25, 2024) [ [crates.io][crate-0.1.41] ] | [ [docs.rs][docs-0.1.41] ] This release updates the `tracing-core` dependency to [v0.1.33][core-0.1.33] and the `tracing-attributes` dependency to [v0.1.28][attrs-0.1.28]. ### Added - **core**: Add index API for `Field` ([#2820]) - **core**: Allow `&[u8]` to be recorded as event/span field ([#2954]) ### Changed - Bump MSRV to 1.63 ([#2793]) - **core**: Use const `thread_local`s when possible ([#2838]) ### Fixed - Removed core imports in macros ([#2762]) - **attributes**: Added missing RecordTypes for instrument ([#2781]) - **attributes**: Change order of async and unsafe modifier ([#2864]) - Fix missing field prefixes ([#2878]) - **attributes**: Extract match scrutinee ([#2880]) - Fix non-simple macro usage without message ([#2879]) - Fix event macros with constant field names in the first position ([#2883]) - Allow field path segments to be keywords ([#2925]) - **core**: Fix missed `register_callsite` error ([#2938]) - **attributes**: Support const values for `target` and `name` ([#2941]) - Prefix macro calls with ::core to avoid clashing with local macros ([#3024]) [#2762]: #2762 [#2781]: #2781 [#2793]: #2793 [#2820]: #2820 [#2838]: #2838 [#2864]: #2864 [#2878]: #2878 [#2879]: #2879 [#2880]: #2880 [#2883]: #2883 [#2925]: #2925 [#2938]: #2938 [#2941]: #2941 [#2954]: #2954 [#3024]: #3024 [attrs-0.1.28]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.28 [core-0.1.33]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.33 [docs-0.1.41]: https://docs.rs/tracing/0.1.41/tracing/ [crate-0.1.41]: https://crates.io/crates/tracing/0.1.41
1 parent 504a287 commit a5371b7

File tree

5 files changed

+59
-6
lines changed

5 files changed

+59
-6
lines changed

tracing-mock/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ rust-version = "1.63.0"
1818
publish = false
1919

2020
[dependencies]
21-
tracing = { path = "../tracing", version = "0.1.35", features = ["std", "attributes"], default-features = false }
21+
tracing = { path = "../tracing", version = "0.1.41", features = ["std", "attributes"], default-features = false }
2222
tracing-core = { path = "../tracing-core", version = "0.1.28", default-features = false }
2323
tracing-subscriber = { path = "../tracing-subscriber", version = "0.3", default-features = false, features = ["registry"], optional = true }
2424

tracing-subscriber/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ nu-ansi-term = ["dep:nu-ansi-term"]
4242
tracing-core = { path = "../tracing-core", version = "0.1.30", default-features = false }
4343

4444
# only required by the filter feature
45-
tracing = { optional = true, path = "../tracing", version = "0.1.35", default-features = false }
45+
tracing = { optional = true, path = "../tracing", version = "0.1.41", default-features = false }
4646
matchers = { optional = true, version = "0.1.0" }
4747
regex = { optional = true, version = "1.6.0", default-features = false, features = ["std", "unicode-case", "unicode-perl"] }
4848
smallvec = { optional = true, version = "1.9.0" }
@@ -71,7 +71,7 @@ valuable_crate = { package = "valuable", version = "0.1.0", optional = true, def
7171
valuable-serde = { version = "0.1.0", optional = true, default-features = false }
7272

7373
[dev-dependencies]
74-
tracing = { path = "../tracing", version = "0.1.35" }
74+
tracing = { path = "../tracing", version = "0.1.41" }
7575
tracing-mock = { path = "../tracing-mock", features = ["tracing-subscriber"] }
7676
log = "0.4.17"
7777
tracing-log = { path = "../tracing-log", version = "0.2.0" }

tracing/CHANGELOG.md

+53
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,56 @@
1+
# 0.1.41 (November 25, 2024)
2+
3+
[ [crates.io][crate-0.1.41] ] | [ [docs.rs][docs-0.1.41] ]
4+
5+
This release updates the `tracing-core` dependency to [v0.1.33][core-0.1.33] and
6+
the `tracing-attributes` dependency to [v0.1.28][attrs-0.1.28].
7+
8+
### Added
9+
10+
- **core**: Add index API for `Field` ([#2820])
11+
- **core**: Allow `&[u8]` to be recorded as event/span field ([#2954])
12+
13+
### Changed
14+
15+
- Bump MSRV to 1.63 ([#2793])
16+
- **core**: Use const `thread_local`s when possible ([#2838])
17+
18+
### Fixed
19+
20+
- Removed core imports in macros ([#2762])
21+
- **attributes**: Added missing RecordTypes for instrument ([#2781])
22+
- **attributes**: Change order of async and unsafe modifier ([#2864])
23+
- Fix missing field prefixes ([#2878])
24+
- **attributes**: Extract match scrutinee ([#2880])
25+
- Fix non-simple macro usage without message ([#2879])
26+
- Fix event macros with constant field names in the first position ([#2883])
27+
- Allow field path segments to be keywords ([#2925])
28+
- **core**: Fix missed `register_callsite` error ([#2938])
29+
- **attributes**: Support const values for `target` and `name` ([#2941])
30+
- Prefix macro calls with ::core to avoid clashing with local macros ([#3024])
31+
32+
[#2762]: https://github.com/tokio-rs/tracing/pull/2762
33+
[#2781]: https://github.com/tokio-rs/tracing/pull/2781
34+
[#2793]: https://github.com/tokio-rs/tracing/pull/2793
35+
[#2820]: https://github.com/tokio-rs/tracing/pull/2820
36+
[#2838]: https://github.com/tokio-rs/tracing/pull/2838
37+
[#2864]: https://github.com/tokio-rs/tracing/pull/2864
38+
[#2878]: https://github.com/tokio-rs/tracing/pull/2878
39+
[#2879]: https://github.com/tokio-rs/tracing/pull/2879
40+
[#2880]: https://github.com/tokio-rs/tracing/pull/2880
41+
[#2883]: https://github.com/tokio-rs/tracing/pull/2883
42+
[#2925]: https://github.com/tokio-rs/tracing/pull/2925
43+
[#2938]: https://github.com/tokio-rs/tracing/pull/2938
44+
[#2941]: https://github.com/tokio-rs/tracing/pull/2941
45+
[#2954]: https://github.com/tokio-rs/tracing/pull/2954
46+
[#3024]: https://github.com/tokio-rs/tracing/pull/3024
47+
[attrs-0.1.28]:
48+
https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.28
49+
[core-0.1.33]:
50+
https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.33
51+
[docs-0.1.41]: https://docs.rs/tracing/0.1.41/tracing/
52+
[crate-0.1.41]: https://crates.io/crates/tracing/0.1.41
53+
154
# 0.1.40
255

356
This release fixes a potential stack use-after-free in the

tracing/Cargo.toml

+1-1
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.40"
11+
version = "0.1.41"
1212
authors = ["Eliza Weisman <[email protected]>", "Tokio Contributors <[email protected]>"]
1313
license = "MIT"
1414
readme = "README.md"

tracing/README.md

+2-2
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.38/tracing/attr.instrument.html)
253+
[`#[instrument]`](https://docs.rs/tracing/0.1.41/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.38/tracing/attr.instrument.html) attribute macro
300+
The [`#[instrument]`](https://docs.rs/tracing/0.1.41/tracing/attr.instrument.html) attribute macro
301301
can reduce some of this boilerplate:
302302

303303
```rust

0 commit comments

Comments
 (0)