Skip to content

Commit 40fb304

Browse files
authored
tracing: prepare to release v0.1.33 (#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 ([#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]: #1900 [#2010]: #2010 [#2012]: #2012 [#2060]: #2060
1 parent d91af65 commit 40fb304

File tree

4 files changed

+31
-7
lines changed

4 files changed

+31
-7
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/Cargo.toml

Lines changed: 1 addition & 1 deletion
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.32"
11+
version = "0.1.33"
1212
authors = ["Eliza Weisman <eliza@buoyant.io>", "Tokio Contributors <team@tokio.rs>"]
1313
license = "MIT"
1414
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/0.1.32
19+
[crates-url]: https://crates.io/crates/tracing/0.1.33
2020
[docs-badge]: https://docs.rs/tracing/badge.svg
21-
[docs-url]: https://docs.rs/tracing/0.1.32
21+
[docs-url]: https://docs.rs/tracing/0.1.33
2222
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
2323
[docs-master-url]: https://tracing-rs.netlify.com/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.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

tracing/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@
812812
//!
813813
//! ```toml
814814
//! [dependencies]
815-
//! tracing = { version = "0.1.32", default-features = false }
815+
//! tracing = { version = "0.1.33", default-features = false }
816816
//! ```
817817
//!
818818
//! <pre class="ignore" style="white-space:normal;font:inherit;">
@@ -895,7 +895,7 @@
895895
//! [flags]: #crate-feature-flags
896896
#![cfg_attr(not(feature = "std"), no_std)]
897897
#![cfg_attr(docsrs, feature(doc_cfg), deny(rustdoc::broken_intra_doc_links))]
898-
#![doc(html_root_url = "https://docs.rs/tracing/0.1.32")]
898+
#![doc(html_root_url = "https://docs.rs/tracing/0.1.33")]
899899
#![doc(
900900
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
901901
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)