Skip to content

Commit 7dc37dd

Browse files
authored
tracing: prepare to release 0.1.11 (#789)
### Added - **attributes**: Support for arbitrary expressions as fields in `#[instrument]` (#672) - **attributes**: `#[instrument]` now emits a compiler warning when ignoring unrecognized input (#672, #786) - Improved documentation on using `tracing` in async code (#769) ### Changed - Updated `tracing-core` dependency to 0.1.11 ### Fixed - **macros**: Excessive monomorphization in macros, which could lead to longer compilation times (#787) - **log**: Compiler warnings in macros when `log` or `log-always` features are enabled (#753) - Compiler error when `tracing-core/std` feature is enabled but `tracing/std` is not (#760) Thanks to @nagisa, and everyone who contributed to the new `tracing-core` and `tracing-attributes` versions, for contributing to this release!
1 parent d5cf52a commit 7dc37dd

File tree

5 files changed

+37
-13
lines changed

5 files changed

+37
-13
lines changed

tracing-subscriber/src/util.rs

+5-5
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.15/tracing/dispatcher/index.html#setting-the-default-subscriber
18-
/// [trace dispatcher]: https://docs.rs/tracing/0.1.15/tracing/dispatcher/index.html
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
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.15/tracing/dispatcher/index.html#setting-the-default-subscriber
30+
/// [default subscriber]: https://docs.rs/tracing/0.1.16/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.15/tracing/dispatcher/index.html#setting-the-default-subscriber
50+
/// [global default subscriber]: https://docs.rs/tracing/0.1.16/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.15/tracing/dispatcher/index.html#setting-the-default-subscriber
72+
/// [global default subscriber]: https://docs.rs/tracing/0.1.16/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

+24
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,27 @@
1+
# 0.1.16 (July 8, 2020)
2+
3+
### Added
4+
5+
- **attributes**: Support for arbitrary expressions as fields in `#[instrument]` (#672)
6+
- **attributes**: `#[instrument]` now emits a compiler warning when ignoring unrecognized
7+
input (#672, #786)
8+
- Improved documentation on using `tracing` in async code (#769)
9+
10+
### Changed
11+
12+
- Updated `tracing-core` dependency to 0.1.11
13+
14+
### Fixed
15+
16+
- **macros**: Excessive monomorphization in macros, which could lead to
17+
longer compilation times (#787)
18+
- **log**: Compiler warnings in macros when `log` or `log-always` features
19+
are enabled (#753)
20+
- Compiler error when `tracing-core/std` feature is enabled but `tracing/std` is
21+
not (#760)
22+
23+
Thanks to @nagisa for contributing to this release!
24+
125
# 0.1.15 (June 2, 2020)
226

327
### Changed

tracing/Cargo.toml

+2-2
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.15"
11+
version = "0.1.16"
1212
authors = ["Eliza Weisman <[email protected]>", "Tokio Contributors <[email protected]>"]
1313
license = "MIT"
1414
readme = "README.md"
@@ -29,7 +29,7 @@ edition = "2018"
2929
[dependencies]
3030
tracing-core = { path = "../tracing-core", version = "0.1.11", default-features = false }
3131
log = { version = "0.4", optional = true }
32-
tracing-attributes = { path = "../tracing-attributes", version = "0.1.8", optional = true }
32+
tracing-attributes = { path = "../tracing-attributes", version = "0.1.9", optional = true }
3333
cfg-if = "0.1.10"
3434

3535
[dev-dependencies]

tracing/README.md

+4-4
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.15
15+
[crates-url]: https://crates.io/crates/tracing/0.1.16
1616
[docs-badge]: https://docs.rs/tracing/badge.svg
17-
[docs-url]: https://docs.rs/tracing/0.1.15
17+
[docs-url]: https://docs.rs/tracing/0.1.16
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.15/tracing/attr.instrument.html)
244+
[`#[instrument]`](https://docs.rs/tracing/0.1.16/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.15/tracing/attr.instrument.html) attribute macro
291+
The [`#[instrument]`](https://docs.rs/tracing/0.1.16/tracing/attr.instrument.html) attribute macro
292292
can reduce some of this boilerplate:
293293

294294
```rust

tracing/src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@
750750
//!
751751
//! ```toml
752752
//! [dependencies]
753-
//! tracing = { version = "0.1.15", default-features = false }
753+
//! tracing = { version = "0.1.16", default-features = false }
754754
//! ```
755755
//!
756756
//! *Compiler support: requires rustc 1.39+*
@@ -794,7 +794,7 @@
794794
//! [flags]: #crate-feature-flags
795795
#![cfg_attr(not(feature = "std"), no_std)]
796796
#![cfg_attr(docsrs, feature(doc_cfg))]
797-
#![doc(html_root_url = "https://docs.rs/tracing/0.1.15")]
797+
#![doc(html_root_url = "https://docs.rs/tracing/0.1.16")]
798798
#![warn(
799799
missing_debug_implementations,
800800
missing_docs,

0 commit comments

Comments
 (0)