Skip to content

Commit 46eda1e

Browse files
authored
attributes: prepare to release 0.1.19
# 0.1.19 (February 3, 2022) This release introduces a new `#[instrument(ret)]` argument to emit an event with the return value of an instrumented function. ### Added - `#[instrument(ret)]` to record the return value of a function ([#1716]) - added `err(Debug)` argument to cause `#[instrument(err)]` to record errors with `Debug` rather than `Display ([#1631]) ### Fixed - incorrect code generation for functions returning async blocks ([#1866]) - incorrect diagnostics when using `rust-analyzer` ([#1634]) Thanks to @Swatinem, @hkmatsumoto, @cynecx, and @ciuncan for contributing to this release! [#1716]: #1716 [#1631]: #1631 [#1634]: #1634 [#1866]: #1866
1 parent 0f8326b commit 46eda1e

File tree

5 files changed

+30
-6
lines changed

5 files changed

+30
-6
lines changed

tracing-attributes/CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# 0.1.19 (February 3, 2022)
2+
3+
This release introduces a new `#[instrument(ret)]` argument to emit an event
4+
with the return value of an instrumented function.
5+
6+
### Added
7+
8+
- `#[instrument(ret)]` to record the return value of a function ([#1716])
9+
- added `err(Debug)` argument to cause `#[instrument(err)]` to record errors
10+
with `Debug` rather than `Display ([#1631])
11+
12+
### Fixed
13+
14+
- incorrect code generation for functions returning async blocks ([#1866])
15+
- incorrect diagnostics when using `rust-analyzer` ([#1634])
16+
17+
Thanks to @Swatinem, @hkmatsumoto, @cynecx, and @ciuncan for contributing to
18+
this release!
19+
20+
[#1716]: https://github.com/tokio-rs/tracing/pull/1716
21+
[#1631]: https://github.com/tokio-rs/tracing/pull/1631
22+
[#1634]: https://github.com/tokio-rs/tracing/pull/1634
23+
[#1866]: https://github.com/tokio-rs/tracing/pull/1866
24+
125
# 0.1.18 (October 5, 2021)
226

327
This release fixes issues introduced in v0.1.17.

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.18"
11+
version = "0.1.19"
1212
authors = [
1313
"Tokio Contributors <team@tokio.rs>",
1414
"Eliza Weisman <eliza@buoyant.io>",

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.18
21+
[docs-url]: https://docs.rs/tracing-attributes/0.1.19
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.18"
50+
tracing-attributes = "0.1.19"
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.18"
19+
//! tracing-attributes = "0.1.19"
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.18")]
55+
#![doc(html_root_url = "https://docs.rs/tracing-attributes/0.1.19")]
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/"

tracing/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ rust-version = "1.42.0"
3030
[dependencies]
3131
tracing-core = { path = "../tracing-core", version = "0.1.22", default-features = false }
3232
log = { version = "0.4", optional = true }
33-
tracing-attributes = { path = "../tracing-attributes", version = "0.1.18", optional = true }
33+
tracing-attributes = { path = "../tracing-attributes", version = "0.1.19", optional = true }
3434
cfg-if = "1.0.0"
3535
pin-project-lite = "0.2"
3636

0 commit comments

Comments
 (0)