Skip to content

Commit ee5eadd

Browse files
committed
tracing: prepare to release 0.1.21
Fixed - Incorrect inlining of `Span::new`, `Span::new_root`, and `Span::new_child_of`, which could result in `dispatcher::get_default` being inlined at the callsite ([#994]) - Regression where using a struct field as a span or event field when other fields on that struct are borrowed mutably would fail to compile ([#987]) Changed - Updated `tracing-core` to 0.1.17 ([#992]) Added - `Instrument` trait and `Instrumented` type for attaching a `Span` to a `Future` ([#808]) - `Copy` implementations for `Level` and `LevelFilter` ([#992]) - Multiple documentation fixes and improvements ([#964], [#980], [#981]) Thanks to @nagisa, and new contributors @securityinsanity, @froydnj, @jyn514 and @TaKO8Ki for contributing to this release! [#994]: #994 [#992]: #992 [#987]: #987 [#980]: #980 [#981]: #981 [#964]: #964 [#808]: #808 Signed-off-by: Eliza Weisman <[email protected]>
1 parent 182684e commit ee5eadd

File tree

5 files changed

+44
-12
lines changed

5 files changed

+44
-12
lines changed

tracing-subscriber/src/util.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ use tracing_core::dispatcher::{self, Dispatch};
1414
/// `Subscriber`, may implement `Into<Dispatch>`, and will also receive an
1515
/// implementation of this trait.
1616
///
17-
/// [default subscriber]: https://docs.rs/tracing/0.1.20/tracing/dispatcher/index.html#setting-the-default-subscriber
18-
/// [trace dispatcher]: https://docs.rs/tracing/0.1.20/tracing/dispatcher/index.html
17+
/// [default subscriber]: https://docs.rs/tracing/0.1.21/tracing/dispatcher/index.html#setting-the-default-subscriber
18+
/// [trace dispatcher]: https://docs.rs/tracing/0.1.21/tracing/dispatcher/index.html
1919
pub trait SubscriberInitExt
2020
where
2121
Self: Into<Dispatch>,
@@ -27,7 +27,7 @@ where
2727
/// a [`log`] compatibility layer. This allows the subscriber to consume
2828
/// `log::Record`s as though they were `tracing` `Event`s.
2929
///
30-
/// [default subscriber]: https://docs.rs/tracing/0.1.20/tracing/dispatcher/index.html#setting-the-default-subscriber
30+
/// [default subscriber]: https://docs.rs/tracing/0.1.21/tracing/dispatcher/index.html#setting-the-default-subscriber
3131
/// [`log`]: https://crates.io/log
3232
fn set_default(self) -> dispatcher::DefaultGuard {
3333
#[cfg(feature = "tracing-log")]
@@ -47,7 +47,7 @@ where
4747
/// been set, or if a `log` logger has already been set (when the
4848
/// "tracing-log" feature is enabled).
4949
///
50-
/// [global default subscriber]: https://docs.rs/tracing/0.1.20/tracing/dispatcher/index.html#setting-the-default-subscriber
50+
/// [global default subscriber]: https://docs.rs/tracing/0.1.21/tracing/dispatcher/index.html#setting-the-default-subscriber
5151
/// [`log`]: https://crates.io/log
5252
fn try_init(self) -> Result<(), TryInitError> {
5353
#[cfg(feature = "tracing-log")]
@@ -69,7 +69,7 @@ where
6969
/// or if a `log` logger has already been set (when the "tracing-log"
7070
/// feature is enabled).
7171
///
72-
/// [global default subscriber]: https://docs.rs/tracing/0.1.20/tracing/dispatcher/index.html#setting-the-default-subscriber
72+
/// [global default subscriber]: https://docs.rs/tracing/0.1.21/tracing/dispatcher/index.html#setting-the-default-subscriber
7373
/// [`log`]: https://crates.io/log
7474
fn init(self) {
7575
self.try_init()

tracing/CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,35 @@
1+
# 0.1.21 (September 28, 2020)
2+
3+
### Fixed
4+
5+
- Incorrect inlining of `Span::new`, `Span::new_root`, and `Span::new_child_of`,
6+
which could result in `dispatcher::get_default` being inlined at the callsite
7+
([#994])
8+
- Regression where using a struct field as a span or event field when other
9+
fields on that struct are borrowed mutably would fail to compile ([#987])
10+
11+
### Changed
12+
13+
- Updated `tracing-core` to 0.1.17 ([#992])
14+
15+
### Added
16+
17+
- `Instrument` trait and `Instrumented` type for attaching a `Span` to a
18+
`Future` ([#808])
19+
- `Copy` implementations for `Level` and `LevelFilter` ([#992])
20+
- Multiple documentation fixes and improvements ([#964], [#980], [#981])
21+
22+
Thanks to @nagisa, and new contributors @SecurityInsanity, @froydnj, @jyn514 and
23+
@TaKO8Ki for contributing to this release!
24+
25+
[#994]: https://github.com/tokio-rs/tracing/pull/994
26+
[#992]: https://github.com/tokio-rs/tracing/pull/992
27+
[#987]: https://github.com/tokio-rs/tracing/pull/987
28+
[#980]: https://github.com/tokio-rs/tracing/pull/980
29+
[#981]: https://github.com/tokio-rs/tracing/pull/981
30+
[#964]: https://github.com/tokio-rs/tracing/pull/964
31+
[#808]: https://github.com/tokio-rs/tracing/pull/808
32+
133
# 0.1.20 (August 24, 2020)
234

335
### Changed

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.20"
11+
version = "0.1.21"
1212
authors = ["Eliza Weisman <[email protected]>", "Tokio Contributors <[email protected]>"]
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.20
19+
[crates-url]: https://crates.io/crates/tracing/0.1.21
2020
[docs-badge]: https://docs.rs/tracing/badge.svg
21-
[docs-url]: https://docs.rs/tracing/0.1.20
21+
[docs-url]: https://docs.rs/tracing/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
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -246,7 +246,7 @@ my_future
246246
is as long as the future's.
247247

248248
The second, and preferred, option is through the
249-
[`#[instrument]`](https://docs.rs/tracing/0.1.20/tracing/attr.instrument.html)
249+
[`#[instrument]`](https://docs.rs/tracing/0.1.21/tracing/attr.instrument.html)
250250
attribute:
251251

252252
```rust
@@ -293,7 +293,7 @@ span.in_scope(|| {
293293
// Dropping the span will close it, indicating that it has ended.
294294
```
295295

296-
The [`#[instrument]`](https://docs.rs/tracing/0.1.20/tracing/attr.instrument.html) attribute macro
296+
The [`#[instrument]`](https://docs.rs/tracing/0.1.21/tracing/attr.instrument.html) attribute macro
297297
can reduce some of this boilerplate:
298298

299299
```rust

tracing/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@
781781
//!
782782
//! ```toml
783783
//! [dependencies]
784-
//! tracing = { version = "0.1.20", default-features = false }
784+
//! tracing = { version = "0.1.21", default-features = false }
785785
//! ```
786786
//!
787787
//! <div class="information">
@@ -837,7 +837,7 @@
837837
//! [flags]: #crate-feature-flags
838838
#![cfg_attr(not(feature = "std"), no_std)]
839839
#![cfg_attr(docsrs, feature(doc_cfg), deny(broken_intra_doc_links))]
840-
#![doc(html_root_url = "https://docs.rs/tracing/0.1.20")]
840+
#![doc(html_root_url = "https://docs.rs/tracing/0.1.21")]
841841
#![doc(
842842
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo-type.png",
843843
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)