Skip to content

Commit ca960ff

Browse files
authored
tracing: prepare to release 0.1.17 (#837)
### Changed - **log**: Moved verbose span enter/exit log records to "tracing::span::active" target, allowing them to be filtered separately (#833) - **log**: All span lifecycle log records without fields now have the `Trace` log filter, to guard against `log` users enabling them by default with blanket level filtering (#833) ### Fixed - **log**/**macros**: Fixed missing implicit imports of the `tracing::field::debug` and `tracing::field::display` functions inside the macros when the "log" feature is enabled (#835)
1 parent 4a3c325 commit ca960ff

File tree

5 files changed

+28
-12
lines changed

5 files changed

+28
-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.16/tracing/dispatcher/index.html#setting-the-default-subscriber
18-
/// [trace dispatcher]: https://docs.rs/tracing/0.1.16/tracing/dispatcher/index.html
17+
/// [default subscriber]: https://docs.rs/tracing/0.1.17/tracing/dispatcher/index.html#setting-the-default-subscriber
18+
/// [trace dispatcher]: https://docs.rs/tracing/0.1.17/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.16/tracing/dispatcher/index.html#setting-the-default-subscriber
30+
/// [default subscriber]: https://docs.rs/tracing/0.1.17/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.16/tracing/dispatcher/index.html#setting-the-default-subscriber
50+
/// [global default subscriber]: https://docs.rs/tracing/0.1.17/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.16/tracing/dispatcher/index.html#setting-the-default-subscriber
72+
/// [global default subscriber]: https://docs.rs/tracing/0.1.17/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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# 0.1.17 (July 22, 2020)
2+
3+
### Changed
4+
5+
- **log**: Moved verbose span enter/exit log records to "tracing::span::active"
6+
target, allowing them to be filtered separately (#833)
7+
- **log**: All span lifecycle log records without fields now have the `Trace`
8+
log filter, to guard against `log` users enabling them by default with blanket
9+
level filtering (#833)
10+
11+
### Fixed
12+
13+
- **log**/**macros**: Fixed missing implicit imports of the
14+
`tracing::field::debug` and `tracing::field::display` functions inside the
15+
macros when the "log" feature is enabled (#835)
16+
117
# 0.1.16 (July 8, 2020)
218

319
### Added

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.16"
11+
version = "0.1.17"
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
@@ -12,9 +12,9 @@ Application-level tracing for Rust.
1212
[Documentation][docs-url] | [Chat][discord-url]
1313

1414
[crates-badge]: https://img.shields.io/crates/v/tracing.svg
15-
[crates-url]: https://crates.io/crates/tracing/0.1.16
15+
[crates-url]: https://crates.io/crates/tracing/0.1.17
1616
[docs-badge]: https://docs.rs/tracing/badge.svg
17-
[docs-url]: https://docs.rs/tracing/0.1.16
17+
[docs-url]: https://docs.rs/tracing/0.1.17
1818
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue
1919
[docs-master-url]: https://tracing-rs.netlify.com/tracing
2020
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -241,7 +241,7 @@ my_future
241241
is as long as the future's.
242242

243243
The second, and preferred, option is through the
244-
[`#[instrument]`](https://docs.rs/tracing/0.1.16/tracing/attr.instrument.html)
244+
[`#[instrument]`](https://docs.rs/tracing/0.1.17/tracing/attr.instrument.html)
245245
attribute:
246246

247247
```rust
@@ -288,7 +288,7 @@ span.in_scope(|| {
288288
// Dropping the span will close it, indicating that it has ended.
289289
```
290290

291-
The [`#[instrument]`](https://docs.rs/tracing/0.1.16/tracing/attr.instrument.html) attribute macro
291+
The [`#[instrument]`](https://docs.rs/tracing/0.1.17/tracing/attr.instrument.html) attribute macro
292292
can reduce some of this boilerplate:
293293

294294
```rust

tracing/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@
754754
//!
755755
//! ```toml
756756
//! [dependencies]
757-
//! tracing = { version = "0.1.16", default-features = false }
757+
//! tracing = { version = "0.1.17", default-features = false }
758758
//! ```
759759
//!
760760
//! *Compiler support: requires rustc 1.39+*
@@ -798,7 +798,7 @@
798798
//! [flags]: #crate-feature-flags
799799
#![cfg_attr(not(feature = "std"), no_std)]
800800
#![cfg_attr(docsrs, feature(doc_cfg))]
801-
#![doc(html_root_url = "https://docs.rs/tracing/0.1.16")]
801+
#![doc(html_root_url = "https://docs.rs/tracing/0.1.17")]
802802
#![doc(
803803
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo.svg",
804804
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)