Skip to content

Commit bec8228

Browse files
authored
core: prepare to release v0.1.31 (#2594)
# 0.1.31 (May 11, 2023) This release of `tracing-core` fixes a bug that caused threads which call `dispatcher::get_default` _before_ a global default subscriber is set to never see the global default once it is set. In addition, it includes improvements for instrumentation performance in some cases, especially when using a global default dispatcher. ### Fixed - Fixed incorrect thread-local caching of `Dispatch::none` if `dispatcher::get_default` is called before `dispatcher::set_global_default` (#2593) ### Changed - Cloning a `Dispatch` that points at a global default subscriber no longer requires an `Arc` reference count increment, improving performance substantially (#2593) - `dispatcher::get_default` no longer attempts to access a thread local if the scoped dispatcher is not in use, improving performance when the default dispatcher is global (#2593) - Added `#[inline]` annotations called by the `event!` and `span!` macros to reduce the size of macro-generated code and improve recording performance (#2555) Thanks to new contributor @ldm0 for contributing to this release!
1 parent fe9e91d commit bec8228

File tree

3 files changed

+45
-14
lines changed

3 files changed

+45
-14
lines changed

tracing-core/CHANGELOG.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,34 @@
1+
# 0.1.31 (May 11, 2023)
2+
3+
This release of `tracing-core` fixes a bug that caused threads which call
4+
`dispatcher::get_default` _before_ a global default subscriber is set to never
5+
see the global default once it is set. In addition, it includes improvements for
6+
instrumentation performance in some cases, especially when using a global
7+
default dispatcher.
8+
9+
### Fixed
10+
11+
- Fixed incorrect thread-local caching of `Dispatch::none` if
12+
`dispatcher::get_default` is called before `dispatcher::set_global_default`
13+
([#2593])
14+
15+
### Changed
16+
17+
- Cloning a `Dispatch` that points at a global default subscriber no longer
18+
requires an `Arc` reference count increment, improving performance
19+
substantially ([#2593])
20+
- `dispatcher::get_default` no longer attempts to access a thread local if the
21+
scoped dispatcher is not in use, improving performance when the default
22+
dispatcher is global ([#2593])
23+
- Added `#[inline]` annotations called by the `event!` and `span!` macros to
24+
reduce the size of macro-generated code and improve recording performance
25+
([#2555])
26+
27+
Thanks to new contributor @ldm0 for contributing to this release!
28+
29+
[#2593]: https://github.com/tokio-rs/tracing/pull/2593
30+
[#2555]: https://github.com/tokio-rs/tracing/pull/2555
31+
132
# 0.1.30 (October 6, 2022)
233

334
This release of `tracing-core` adds a new `on_register_dispatch` method to the

tracing-core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ name = "tracing-core"
88
# - README.md
99
# - Update CHANGELOG.md.
1010
# - Create "v0.1.x" git tag.
11-
version = "0.1.30"
11+
version = "0.1.31"
1212
authors = ["Tokio Contributors <[email protected]>"]
1313
license = "MIT"
1414
readme = "README.md"

tracing-core/README.md

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

1818
[crates-badge]: https://img.shields.io/crates/v/tracing-core.svg
19-
[crates-url]: https://crates.io/crates/tracing-core/0.1.30
19+
[crates-url]: https://crates.io/crates/tracing-core/0.1.31
2020
[docs-badge]: https://docs.rs/tracing-core/badge.svg
21-
[docs-url]: https://docs.rs/tracing-core/0.1.30
21+
[docs-url]: https://docs.rs/tracing-core/0.1.31
2222
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
2323
[docs-master-url]: https://tracing-rs.netlify.com/tracing_core
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -79,22 +79,22 @@ The following crate feature flags are available:
7979

8080
```toml
8181
[dependencies]
82-
tracing-core = { version = "0.1.30", default-features = false }
82+
tracing-core = { version = "0.1.31", default-features = false }
8383
```
8484

8585
**Note**:`tracing-core`'s `no_std` support requires `liballoc`.
8686

8787
[`tracing`]: ../tracing
88-
[`span::Id`]: https://docs.rs/tracing-core/0.1.30/tracing_core/span/struct.Id.html
89-
[`Event`]: https://docs.rs/tracing-core/0.1.30/tracing_core/event/struct.Event.html
90-
[`Subscriber`]: https://docs.rs/tracing-core/0.1.30/tracing_core/subscriber/trait.Subscriber.html
91-
[`Metadata`]: https://docs.rs/tracing-core/0.1.30/tracing_core/metadata/struct.Metadata.html
92-
[`Callsite`]: https://docs.rs/tracing-core/0.1.30/tracing_core/callsite/trait.Callsite.html
93-
[`Field`]: https://docs.rs/tracing-core/0.1.30/tracing_core/field/struct.Field.html
94-
[`FieldSet`]: https://docs.rs/tracing-core/0.1.30/tracing_core/field/struct.FieldSet.html
95-
[`Value`]: https://docs.rs/tracing-core/0.1.30/tracing_core/field/trait.Value.html
96-
[`ValueSet`]: https://docs.rs/tracing-core/0.1.30/tracing_core/field/struct.ValueSet.html
97-
[`Dispatch`]: https://docs.rs/tracing-core/0.1.30/tracing_core/dispatcher/struct.Dispatch.html
88+
[`span::Id`]: https://docs.rs/tracing-core/0.1.31/tracing_core/span/struct.Id.html
89+
[`Event`]: https://docs.rs/tracing-core/0.1.31/tracing_core/event/struct.Event.html
90+
[`Subscriber`]: https://docs.rs/tracing-core/0.1.31/tracing_core/subscriber/trait.Subscriber.html
91+
[`Metadata`]: https://docs.rs/tracing-core/0.1.31/tracing_core/metadata/struct.Metadata.html
92+
[`Callsite`]: https://docs.rs/tracing-core/0.1.31/tracing_core/callsite/trait.Callsite.html
93+
[`Field`]: https://docs.rs/tracing-core/0.1.31/tracing_core/field/struct.Field.html
94+
[`FieldSet`]: https://docs.rs/tracing-core/0.1.31/tracing_core/field/struct.FieldSet.html
95+
[`Value`]: https://docs.rs/tracing-core/0.1.31/tracing_core/field/trait.Value.html
96+
[`ValueSet`]: https://docs.rs/tracing-core/0.1.31/tracing_core/field/struct.ValueSet.html
97+
[`Dispatch`]: https://docs.rs/tracing-core/0.1.31/tracing_core/dispatcher/struct.Dispatch.html
9898

9999
## Supported Rust Versions
100100

0 commit comments

Comments
 (0)