Skip to content

Commit 1b5bfa0

Browse files
authored
tracing: prepare to release 0.1.19 (#915)
### Fixed - Updated `tracing-core` to fix incorrect calculation of the global max level filter (#908) ### Added - **attributes**: Support for using `self` in field expressions when instrumenting `async-trait` functions (#875) - Several documentation improvements (#832, #881, #896, #897, #911, #913) Thanks to @anton-dutov, @nightmared, @mystor, and @toshokan for contributing to this release! Signed-off-by: Eliza Weisman <[email protected]>
1 parent 35fee1c commit 1b5bfa0

File tree

5 files changed

+29
-13
lines changed

5 files changed

+29
-13
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.18/tracing/dispatcher/index.html#setting-the-default-subscriber
18-
/// [trace dispatcher]: https://docs.rs/tracing/0.1.18/tracing/dispatcher/index.html
17+
/// [default subscriber]: https://docs.rs/tracing/0.1.19/tracing/dispatcher/index.html#setting-the-default-subscriber
18+
/// [trace dispatcher]: https://docs.rs/tracing/0.1.19/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.18/tracing/dispatcher/index.html#setting-the-default-subscriber
30+
/// [default subscriber]: https://docs.rs/tracing/0.1.19/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.18/tracing/dispatcher/index.html#setting-the-default-subscriber
50+
/// [global default subscriber]: https://docs.rs/tracing/0.1.19/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.18/tracing/dispatcher/index.html#setting-the-default-subscriber
72+
/// [global default subscriber]: https://docs.rs/tracing/0.1.19/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: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
# 0.1.18 (July 31, 2020)
1+
# 0.1.19 (August 10, 2020)
2+
3+
### Fixed
4+
5+
- Updated `tracing-core` to fix incorrect calculation of the global max level
6+
filter (#908)
7+
8+
### Added
9+
10+
- **attributes**: Support for using `self` in field expressions when
11+
instrumenting `async-trait` functions (#875)
12+
- Several documentation improvements (#832, #881, #896, #897, #911, #913)
13+
14+
Thanks to @anton-dutov, @nightmared, @mystor, and @toshokan for contributing to
15+
this release!
16+
17+
# 0.1.19 (July 31, 2020)
218

319
### Fixed
420

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.18"
11+
version = "0.1.19"
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.18
19+
[crates-url]: https://crates.io/crates/tracing/0.1.19
2020
[docs-badge]: https://docs.rs/tracing/badge.svg
21-
[docs-url]: https://docs.rs/tracing/0.1.18
21+
[docs-url]: https://docs.rs/tracing/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
2424
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg
@@ -245,7 +245,7 @@ my_future
245245
is as long as the future's.
246246

247247
The second, and preferred, option is through the
248-
[`#[instrument]`](https://docs.rs/tracing/0.1.18/tracing/attr.instrument.html)
248+
[`#[instrument]`](https://docs.rs/tracing/0.1.19/tracing/attr.instrument.html)
249249
attribute:
250250

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

295-
The [`#[instrument]`](https://docs.rs/tracing/0.1.18/tracing/attr.instrument.html) attribute macro
295+
The [`#[instrument]`](https://docs.rs/tracing/0.1.19/tracing/attr.instrument.html) attribute macro
296296
can reduce some of this boilerplate:
297297

298298
```rust

tracing/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@
774774
//!
775775
//! ```toml
776776
//! [dependencies]
777-
//! tracing = { version = "0.1.18", default-features = false }
777+
//! tracing = { version = "0.1.19", default-features = false }
778778
//! ```
779779
//!
780780
//! *Compiler support: requires rustc 1.39+*
@@ -817,7 +817,7 @@
817817
//! [flags]: #crate-feature-flags
818818
#![cfg_attr(not(feature = "std"), no_std)]
819819
#![cfg_attr(docsrs, feature(doc_cfg))]
820-
#![doc(html_root_url = "https://docs.rs/tracing/0.1.18")]
820+
#![doc(html_root_url = "https://docs.rs/tracing/0.1.19")]
821821
#![doc(
822822
html_logo_url = "https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/logo.svg",
823823
issue_tracker_base_url = "https://github.com/tokio-rs/tracing/issues/"

0 commit comments

Comments
 (0)