Skip to content

Commit

Permalink
tracing: prepare to release v0.1.33 (tokio-rs#2061)
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
hawkw authored and kaffarell committed May 22, 2024
1 parent fe27c15 commit 76858ce
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
24 changes: 24 additions & 0 deletions tracing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
# 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 ([#1900])
- Several documentation improvements ([#2010], [#2012])

### Fixed

- Compilation warning when compiling for <=32-bit targets (including `wasm32`)
([#2060])

Thanks to @guswynn, @arifd, @hrxi, @CAD97, and @name1e5s for contributing to
this release!

[#1900]: https://github.com/tokio-rs/tracing/pull/1900
[#2010]: https://github.com/tokio-rs/tracing/pull/2010
[#2012]: https://github.com/tokio-rs/tracing/pull/2012
[#2060]: https://github.com/tokio-rs/tracing/pull/2060

# 0.1.32 (March 8th, 2022)

This release reduces the overhead of creating and dropping disabled
Expand Down
4 changes: 2 additions & 2 deletions tracing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ my_future
is as long as the future's.

The second, and preferred, option is through the
[`#[instrument]`](https://docs.rs/tracing/0.1.32/tracing/attr.instrument.html)
[`#[instrument]`](https://docs.rs/tracing/0.1.33/tracing/attr.instrument.html)
attribute:

```rust
Expand Down Expand Up @@ -297,7 +297,7 @@ span.in_scope(|| {
// Dropping the span will close it, indicating that it has ended.
```

The [`#[instrument]`](https://docs.rs/tracing/0.1.32/tracing/attr.instrument.html) attribute macro
The [`#[instrument]`](https://docs.rs/tracing/0.1.33/tracing/attr.instrument.html) attribute macro
can reduce some of this boilerplate:

```rust
Expand Down

0 comments on commit 76858ce

Please sign in to comment.