From 0e92b7111f065c08abe1dfa94080acc26e0c7633 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Fri, 30 Apr 2021 15:54:03 -0700 Subject: [PATCH] tracing: prepare to release 0.1.26 # 0.1.26 (April 30, 2021) ### Fixed - **attributes**: Compatibility between `#[instrument]` and `async-trait` v0.1.43 and newer ([#1228]) - Several documentation fixes ([#1305], [#1344]) ### Added - `Subscriber` impl for `Box` ([#1358]) - `Subscriber` impl for `Arc` ([#1374]) - Symmetric `From` impls for existing `Into` impls on `span::Current`, `Span`, and `Option` ([#1335], [#1338]) - `From` implementation for `Option`, allowing `EnteredSpan` to be used in a `span!` macro's `parent:` field ([#1325]) - `Attributes::fields` accessor that returns the set of fields defined on a span's `Attributes` ([#1331]) Thanks to @Folyd, @nightmared, and new contributors @rmsc and @Fishrock123 for contributing to this release! [#1227]: https://github.com/tokio-rs/tracing/pull/1228 [#1305]: https://github.com/tokio-rs/tracing/pull/1305 [#1325]: https://github.com/tokio-rs/tracing/pull/1325 [#1338]: https://github.com/tokio-rs/tracing/pull/1338 [#1344]: https://github.com/tokio-rs/tracing/pull/1344 [#1358]: https://github.com/tokio-rs/tracing/pull/1358 [#1374]: https://github.com/tokio-rs/tracing/pull/1374 [#1335]: https://github.com/tokio-rs/tracing/pull/1335 [#1331]: https://github.com/tokio-rs/tracing/pull/1331 --- tracing/CHANGELOG.md | 32 ++++++++++++++++++++++++++++++++ tracing/Cargo.toml | 4 ++-- tracing/README.md | 8 ++++---- tracing/src/lib.rs | 4 ++-- 4 files changed, 40 insertions(+), 8 deletions(-) diff --git a/tracing/CHANGELOG.md b/tracing/CHANGELOG.md index 09fef9ae6f..c23814b812 100644 --- a/tracing/CHANGELOG.md +++ b/tracing/CHANGELOG.md @@ -1,3 +1,35 @@ +# 0.1.26 (April 30, 2021) + +### Fixed + +- **attributes**: Compatibility between `#[instrument]` and `async-trait` + v0.1.43 and newer ([#1228]) +- Several documentation fixes ([#1305], [#1344]) +### Added + +- `Subscriber` impl for `Box` ([#1358]) +- `Subscriber` impl for `Arc` ([#1374]) +- Symmetric `From` impls for existing `Into` impls on `span::Current`, `Span`, + and `Option` ([#1335], [#1338]) +- `From` implementation for `Option`, allowing `EnteredSpan` to + be used in a `span!` macro's `parent:` field ([#1325]) +- `Attributes::fields` accessor that returns the set of fields defined on a + span's `Attributes` ([#1331]) + + +Thanks to @Folyd, @nightmared, and new contributors @rmsc and @Fishrock123 for +contributing to this release! + +[#1227]: https://github.com/tokio-rs/tracing/pull/1228 +[#1305]: https://github.com/tokio-rs/tracing/pull/1305 +[#1325]: https://github.com/tokio-rs/tracing/pull/1325 +[#1338]: https://github.com/tokio-rs/tracing/pull/1338 +[#1344]: https://github.com/tokio-rs/tracing/pull/1344 +[#1358]: https://github.com/tokio-rs/tracing/pull/1358 +[#1374]: https://github.com/tokio-rs/tracing/pull/1374 +[#1335]: https://github.com/tokio-rs/tracing/pull/1335 +[#1331]: https://github.com/tokio-rs/tracing/pull/1331 + # 0.1.25 (February 23, 2021) ### Added diff --git a/tracing/Cargo.toml b/tracing/Cargo.toml index b661781173..19a69a3201 100644 --- a/tracing/Cargo.toml +++ b/tracing/Cargo.toml @@ -8,7 +8,7 @@ name = "tracing" # - README.md # - Update CHANGELOG.md. # - Create "v0.1.x" git tag -version = "0.1.25" +version = "0.1.26" authors = ["Eliza Weisman ", "Tokio Contributors "] license = "MIT" readme = "README.md" @@ -27,7 +27,7 @@ keywords = ["logging", "tracing", "metrics", "async"] edition = "2018" [dependencies] -tracing-core = { path = "../tracing-core", version = "0.1.17", default-features = false } +tracing-core = { path = "../tracing-core", version = "0.1.18", default-features = false } log = { version = "0.4", optional = true } tracing-attributes = { path = "../tracing-attributes", version = "0.1.15", optional = true } cfg-if = "1.0.0" diff --git a/tracing/README.md b/tracing/README.md index 0f660f2c39..f227d568ec 100644 --- a/tracing/README.md +++ b/tracing/README.md @@ -16,9 +16,9 @@ Application-level tracing for Rust. [Documentation][docs-url] | [Chat][discord-url] [crates-badge]: https://img.shields.io/crates/v/tracing.svg -[crates-url]: https://crates.io/crates/tracing/0.1.25 +[crates-url]: https://crates.io/crates/tracing/0.1.26 [docs-badge]: https://docs.rs/tracing/badge.svg -[docs-url]: https://docs.rs/tracing/0.1.25 +[docs-url]: https://docs.rs/tracing/0.1.26 [docs-master-badge]: https://img.shields.io/badge/docs-master-blue [docs-master-url]: https://tracing-rs.netlify.com/tracing [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg @@ -251,7 +251,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.25/tracing/attr.instrument.html) +[`#[instrument]`](https://docs.rs/tracing/0.1.26/tracing/attr.instrument.html) attribute: ```rust @@ -298,7 +298,7 @@ span.in_scope(|| { // Dropping the span will close it, indicating that it has ended. ``` -The [`#[instrument]`](https://docs.rs/tracing/0.1.25/tracing/attr.instrument.html) attribute macro +The [`#[instrument]`](https://docs.rs/tracing/0.1.26/tracing/attr.instrument.html) attribute macro can reduce some of this boilerplate: ```rust diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs index fb02eca2eb..83fbdd7f9c 100644 --- a/tracing/src/lib.rs +++ b/tracing/src/lib.rs @@ -802,7 +802,7 @@ //! //! ```toml //! [dependencies] -//! tracing = { version = "0.1.25", default-features = false } +//! tracing = { version = "0.1.26", default-features = false } //! ``` //! //!
@@ -858,7 +858,7 @@ //! [flags]: #crate-feature-flags #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(docsrs, feature(doc_cfg), deny(broken_intra_doc_links))] -#![doc(html_root_url = "https://docs.rs/tracing/0.1.25")] +#![doc(html_root_url = "https://docs.rs/tracing/0.1.26")] #![doc( html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png", issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"