Skip to content

Commit 76858ce

Browse files
hawkwkaffarell
authored andcommitted
tracing: prepare to release v0.1.33 (tokio-rs#2061)
# 0.1.33 (April 9, 2022) This release adds new `span_enabled!` and `event_enabled!` variants of the `enabled!` macro, for testing whether a subscriber would specifically enable a span or an event. ### Added - `span_enabled!` and `event_enabled!` macros ([tokio-rs#1900]) - Several documentation improvements ([tokio-rs#2010], [tokio-rs#2012]) ### Fixed - Compilation warning when compiling for <=32-bit targets (including `wasm32`) ([tokio-rs#2060]) Thanks to @guswynn, @arifd, @hrxi, @CAD97, and @name1e5s for contributing to this release! [tokio-rs#1900]: tokio-rs#1900 [tokio-rs#2010]: tokio-rs#2010 [tokio-rs#2012]: tokio-rs#2012 [tokio-rs#2060]: tokio-rs#2060
1 parent fe27c15 commit 76858ce

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
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.33 (April 9, 2022)
2+
3+
This release adds new `span_enabled!` and `event_enabled!` variants of the
4+
`enabled!` macro, for testing whether a subscriber would specifically enable a
5+
span or an event.
6+
7+
### Added
8+
9+
- `span_enabled!` and `event_enabled!` macros ([#1900])
10+
- Several documentation improvements ([#2010], [#2012])
11+
12+
### Fixed
13+
14+
- Compilation warning when compiling for <=32-bit targets (including `wasm32`)
15+
([#2060])
16+
17+
Thanks to @guswynn, @arifd, @hrxi, @CAD97, and @name1e5s for contributing to
18+
this release!
19+
20+
[#1900]: https://github.com/tokio-rs/tracing/pull/1900
21+
[#2010]: https://github.com/tokio-rs/tracing/pull/2010
22+
[#2012]: https://github.com/tokio-rs/tracing/pull/2012
23+
[#2060]: https://github.com/tokio-rs/tracing/pull/2060
24+
125
# 0.1.32 (March 8th, 2022)
226

327
This release reduces the overhead of creating and dropping disabled

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

303303
```rust

0 commit comments

Comments
 (0)