Skip to content

Commit 45c0a10

Browse files
authored
attributes: prepare to release v0.1.21 (#2097)
# 0.1.21 (April 26, 2022) This release adds support for setting explicit parent and follows-from spans in the `#[instrument]` attribute. ### Added - `#[instrument(follows_from = ...)]` argument for setting one or more follows-from span ([#2093]) - `#[instrument(parent = ...)]` argument for overriding the generated span's parent ([#2091]) ### Fixed - Extra braces around `async` blocks in expanded code (causes a Clippy warning) ([#2090]) - Broken documentation links ([#2068], [#2077]) Thanks to @jarrodldavis, @ben0x539, and new contributor @jswrenn for contributing to this release! [#2093]: #2093 [#2091]: #2091 [#2090]: #2090 [#2077]: #2077 [#2068]: #2068
1 parent 138a971 commit 45c0a10

File tree

4 files changed

+33
-5
lines changed

4 files changed

+33
-5
lines changed

tracing-attributes/CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
# 0.1.21 (April 26, 2022)
2+
3+
This release adds support for setting explicit parent and follows-from spans
4+
in the `#[instrument]` attribute.
5+
6+
### Added
7+
8+
- `#[instrument(follows_from = ...)]` argument for setting one or more
9+
follows-from span ([#2093])
10+
- `#[instrument(parent = ...)]` argument for overriding the generated span's
11+
parent ([#2091])
12+
13+
### Fixed
14+
15+
- Extra braces around `async` blocks in expanded code (causes a Clippy warning)
16+
([#2090])
17+
- Broken documentation links ([#2068], [#2077])
18+
19+
Thanks to @jarrodldavis, @ben0x539, and new contributor @jswrenn for
20+
contributing to this release!
21+
22+
23+
[#2093]: https://github.com/tokio-rs/tracing/pull/2093
24+
[#2091]: https://github.com/tokio-rs/tracing/pull/2091
25+
[#2090]: https://github.com/tokio-rs/tracing/pull/2090
26+
[#2077]: https://github.com/tokio-rs/tracing/pull/2077
27+
[#2068]: https://github.com/tokio-rs/tracing/pull/2068
28+
129
# 0.1.20 (March 8, 2022)
230

331
### Fixed

tracing-attributes/Cargo.toml

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

tracing-attributes/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Macro attributes for application-level tracing.
1818
[crates-badge]: https://img.shields.io/crates/v/tracing-attributes.svg
1919
[crates-url]: https://crates.io/crates/tracing-attributes
2020
[docs-badge]: https://docs.rs/tracing-attributes/badge.svg
21-
[docs-url]: https://docs.rs/tracing-attributes/0.1.20
21+
[docs-url]: https://docs.rs/tracing-attributes/0.1.21
2222
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
2323
[docs-master-url]: https://tracing-rs.netlify.com/tracing_attributes
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -47,7 +47,7 @@ First, add this to your `Cargo.toml`:
4747

4848
```toml
4949
[dependencies]
50-
tracing-attributes = "0.1.20"
50+
tracing-attributes = "0.1.21"
5151
```
5252

5353

tracing-attributes/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//!
1717
//! ```toml
1818
//! [dependencies]
19-
//! tracing-attributes = "0.1.20"
19+
//! tracing-attributes = "0.1.21"
2020
//! ```
2121
//!
2222
//! The [`#[instrument]`][instrument] attribute can now be added to a function
@@ -52,7 +52,7 @@
5252
//! supported compiler version is not considered a semver breaking change as
5353
//! long as doing so complies with this policy.
5454
//!
55-
#![doc(html_root_url = "https://docs.rs/tracing-attributes/0.1.20")]
55+
#![doc(html_root_url = "https://docs.rs/tracing-attributes/0.1.21")]
5656
#![doc(
5757
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
5858
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)