Skip to content

Commit

Permalink
tracing: prepare to release 0.1.13
Browse files Browse the repository at this point in the history
Added:

- **field**: `field::Empty` type for declaring empty fields whose values
  will be recorded later (#548)
- **field**: `field::Value` implementations for `Wrapping` and `NonZero*`
  numbers (#538)
- **attributes**: Support for adding arbitrary literal fields to spans
  generated by `#[instrument]` (#569)
- **attributes**: `#[instrument]` now emits a helpful compiler error when
  attempting to skip a function parameter (#600)

Changed:

- **attributes**: The `#[instrument]` attribute was placed under an
  on-by-default  feature flag "attributes" (#603)

Fixed:

- Broken and unresolvable links in RustDoc (#595)

Thanks to @oli-cosmian and @Kobzol for contributing to this release!

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
  • Loading branch information
hawkw committed Feb 26, 2020
1 parent 4d5dd72 commit 9ddc20b
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
23 changes: 20 additions & 3 deletions tracing/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
# Unreleased
# 0.1.13 (February 26, 2019)

### Added

- **field**: `field::Empty` type for declaring empty fields whose values will be
recorded later (#548)
- **field**: `field::Value` implementations for `Wrapping` and `NonZero*`
numbers (#538)
- **attributes**: Support for adding arbitrary literal fields to spans generated
by `#[instrument]` (#569)
- **attributes**: `#[instrument]` now emits a helpful compiler error when
attempting to skip a function parameter (#600)

### Changed

- The `instrument` attribute was placed under an on-by-default feature
flag (#603)
- **attributes**: The `#[instrument]` attribute was placed under an on-by-default
feature flag "attributes" (#603)

### Fixed

- Broken and unresolvable links in RustDoc (#595)

Thanks to @oli-cosmian and @Kobzol for contributing to this release!

# 0.1.12 (January 11, 2019)

Expand Down
2 changes: 1 addition & 1 deletion tracing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ name = "tracing"
# - README.md
# - Update CHANGELOG.md.
# - Create "v0.1.x" git tag
version = "0.1.12"
version = "0.1.13"
authors = ["Eliza Weisman <eliza@buoyant.io>", "Tokio Contributors <team@tokio.rs>"]
license = "MIT"
readme = "README.md"
Expand Down
8 changes: 4 additions & 4 deletions tracing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,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.12
[crates-url]: https://crates.io/crates/tracing/0.1.13
[docs-badge]: https://docs.rs/tracing/badge.svg
[docs-url]: https://docs.rs/tracing/0.1.12
[docs-url]: https://docs.rs/tracing/0.1.13
[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
Expand Down Expand Up @@ -241,7 +241,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.12/tracing/attr.instrument.html)
[`#[instrument]`](https://docs.rs/tracing/0.1.13/tracing/attr.instrument.html)
attribute:

```rust
Expand Down Expand Up @@ -290,7 +290,7 @@ span.in_scope(|| {
// Dropping the span will close it, indicating that it has ended.
```

The [`#[instrument]`](https://docs.rs/tracing/0.1.12/tracing/attr.instrument.html) attribute macro
The [`#[instrument]`](https://docs.rs/tracing/0.1.13/tracing/attr.instrument.html) attribute macro
can reduce some of this boilerplate:

```rust
Expand Down
4 changes: 2 additions & 2 deletions tracing/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@
//!
//! ```toml
//! [dependencies]
//! tracing = { version = "0.1.12", default-features = false }
//! tracing = { version = "0.1.13", default-features = false }
//! ```
//!
//! *Compiler support: requires rustc 1.39+*
Expand Down Expand Up @@ -698,7 +698,7 @@
//! [instrument]: https://docs.rs/tracing-attributes/latest/tracing_attributes/attr.instrument.html
#![cfg_attr(not(feature = "std"), no_std)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![doc(html_root_url = "https://docs.rs/tracing/0.1.12")]
#![doc(html_root_url = "https://docs.rs/tracing/0.1.13")]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down

0 comments on commit 9ddc20b

Please sign in to comment.