subscriber: prepare to release 0.2.6 (#757)

Fixed

- **fmt**: Fixed an issue in the JSON formatter where using
  `Span::record` would result in malformed spans (#709)

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
This commit is contained in:
Eliza Weisman 2020-06-19 09:55:47 -07:00 committed by GitHub
parent d479ca04bf
commit 971a46b46d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 21 additions and 14 deletions

View File

@ -42,7 +42,7 @@ idiomatic `tracing`.)
In order to record trace events, executables have to use a `Subscriber` In order to record trace events, executables have to use a `Subscriber`
implementation compatible with `tracing`. A `Subscriber` implements a way of implementation compatible with `tracing`. A `Subscriber` implements a way of
collecting trace data, such as by logging it to standard output. [`tracing_subscriber`](https://docs.rs/tracing-subscriber/)'s collecting trace data, such as by logging it to standard output. [`tracing_subscriber`](https://docs.rs/tracing-subscriber/)'s
[`fmt` module](https://docs.rs/tracing-subscriber/0.2.4/tracing_subscriber/fmt/index.html) provides reasonable defaults. [`fmt` module](https://docs.rs/tracing-subscriber/0.2.6/tracing_subscriber/fmt/index.html) provides reasonable defaults.
Additionally, `tracing-subscriber` is able to consume messages emitted by `log`-instrumented libraries and modules. Additionally, `tracing-subscriber` is able to consume messages emitted by `log`-instrumented libraries and modules.
The simplest way to use a subscriber is to call the `set_global_default` function. The simplest way to use a subscriber is to call the `set_global_default` function.
@ -75,7 +75,7 @@ fn main() {
```toml ```toml
[dependencies] [dependencies]
tracing = "0.1" tracing = "0.1"
tracing-subscriber = "0.2.4" tracing-subscriber = "0.2.6"
``` ```
This subscriber will be used as the default in all threads for the remainder of the duration This subscriber will be used as the default in all threads for the remainder of the duration

View File

@ -15,7 +15,7 @@ tracing-core = { path = "../tracing-core", version = "0.1"}
tracing-error = { path = "../tracing-error" } tracing-error = { path = "../tracing-error" }
tracing-flame = { path = "../tracing-flame" } tracing-flame = { path = "../tracing-flame" }
tracing-tower = { version = "0.1.0", path = "../tracing-tower" } tracing-tower = { version = "0.1.0", path = "../tracing-tower" }
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.4", features = ["json", "chrono"] } tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.6", features = ["json", "chrono"] }
tracing-futures = { version = "0.2.1", path = "../tracing-futures", features = ["futures-01"] } tracing-futures = { version = "0.2.1", path = "../tracing-futures", features = ["futures-01"] }
tracing-attributes = { path = "../tracing-attributes", version = "0.1.2"} tracing-attributes = { path = "../tracing-attributes", version = "0.1.2"}
tracing-log = { path = "../tracing-log", version = "0.1.1", features = ["env_logger"] } tracing-log = { path = "../tracing-log", version = "0.1.1", features = ["env_logger"] }

View File

@ -20,7 +20,7 @@ keywords = ["logging", "tracing", "file-appender", "non-blocking-writer"]
edition = "2018" edition = "2018"
[dependencies] [dependencies]
tracing-subscriber = {path = "../tracing-subscriber", version = "0.2.4"} tracing-subscriber = {path = "../tracing-subscriber", version = "0.2.6"}
crossbeam-channel = "0.4.2" crossbeam-channel = "0.4.2"
chrono = "0.4.11" chrono = "0.4.11"

View File

@ -38,7 +38,7 @@ default = ["traced-error"]
traced-error = [] traced-error = []
[dependencies] [dependencies]
tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.4", default-features = false, features = ["registry", "fmt"] } tracing-subscriber = { path = "../tracing-subscriber", version = "0.2.6", default-features = false, features = ["registry", "fmt"] }
tracing = { path = "../tracing", version = "0.1.12"} tracing = { path = "../tracing", version = "0.1.12"}
[badges] [badges]

View File

@ -15,10 +15,10 @@ use tracing_subscriber::{
/// when formatting the fields of each span in a trace. When no formatter is /// when formatting the fields of each span in a trace. When no formatter is
/// provided, the [default format] is used instead. /// provided, the [default format] is used instead.
/// ///
/// [`Layer`]: https://docs.rs/tracing-subscriber/0.2.4/tracing_subscriber/layer/trait.Layer.html /// [`Layer`]: https://docs.rs/tracing-subscriber/0.2.6/tracing_subscriber/layer/trait.Layer.html
/// [`SpanTrace`]: ../struct.SpanTrace.html /// [`SpanTrace`]: ../struct.SpanTrace.html
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.4/tracing_subscriber/fmt/trait.FormatFields.html /// [field formatter]: https://docs.rs/tracing-subscriber/0.2.6/tracing_subscriber/fmt/trait.FormatFields.html
/// [default format]: https://docs.rs/tracing-subscriber/0.2.4/tracing_subscriber/fmt/format/struct.DefaultFields.html /// [default format]: https://docs.rs/tracing-subscriber/0.2.6/tracing_subscriber/fmt/format/struct.DefaultFields.html
pub struct ErrorLayer<S, F = DefaultFields> { pub struct ErrorLayer<S, F = DefaultFields> {
format: F, format: F,
@ -70,7 +70,7 @@ where
{ {
/// Returns a new `ErrorLayer` with the provided [field formatter]. /// Returns a new `ErrorLayer` with the provided [field formatter].
/// ///
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.4/tracing_subscriber/fmt/trait.FormatFields.html /// [field formatter]: https://docs.rs/tracing-subscriber/0.2.6/tracing_subscriber/fmt/trait.FormatFields.html
pub fn new(format: F) -> Self { pub fn new(format: F) -> Self {
Self { Self {
format, format,

View File

@ -115,7 +115,7 @@ terms or conditions.
[crates-badge]: https://img.shields.io/crates/v/tracing-flame.svg [crates-badge]: https://img.shields.io/crates/v/tracing-flame.svg
[crates-url]: https://crates.io/crates/tracing-flame [crates-url]: https://crates.io/crates/tracing-flame
[docs-badge]: https://docs.rs/tracing-flame/badge.svg [docs-badge]: https://docs.rs/tracing-flame/badge.svg
[docs-url]: https://docs.rs/tracing-flame/0.2.4 [docs-url]: https://docs.rs/tracing-flame/0.2.6
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue [docs-master-badge]: https://img.shields.io/badge/docs-master-blue
[docs-master-url]: https://tracing-rs.netlify.com/tracing_flame [docs-master-url]: https://tracing-rs.netlify.com/tracing_flame
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tracing-futures" name = "tracing-futures"
version = "0.2.4" version = "0.2.6"
authors = ["Eliza Weisman <eliza@buoyant.io>", "Tokio Contributors <team@tokio.rs>"] authors = ["Eliza Weisman <eliza@buoyant.io>", "Tokio Contributors <team@tokio.rs>"]
edition = "2018" edition = "2018"
repository = "https://github.com/tokio-rs/tracing" repository = "https://github.com/tokio-rs/tracing"

View File

@ -1,3 +1,10 @@
# 0.2.6 (June 19, 2020)
### Fixed
- **fmt**: Fixed an issue in the JSON formatter where using `Span::record` would
result in malformed spans (#709)
# 0.2.5 (April 21, 2020) # 0.2.5 (April 21, 2020)
### Changed ### Changed

View File

@ -1,6 +1,6 @@
[package] [package]
name = "tracing-subscriber" name = "tracing-subscriber"
version = "0.2.5" version = "0.2.6"
authors = [ authors = [
"Eliza Weisman <eliza@buoyant.io>", "Eliza Weisman <eliza@buoyant.io>",
"David Barsky <me@davidbarsky.com>", "David Barsky <me@davidbarsky.com>",

View File

@ -17,7 +17,7 @@ Utilities for implementing and composing [`tracing`][tracing] subscribers.
[crates-badge]: https://img.shields.io/crates/v/tracing-subscriber.svg [crates-badge]: https://img.shields.io/crates/v/tracing-subscriber.svg
[crates-url]: https://crates.io/crates/tracing-subscriber [crates-url]: https://crates.io/crates/tracing-subscriber
[docs-badge]: https://docs.rs/tracing-subscriber/badge.svg [docs-badge]: https://docs.rs/tracing-subscriber/badge.svg
[docs-url]: https://docs.rs/tracing-subscriber/0.2.4 [docs-url]: https://docs.rs/tracing-subscriber/0.2.6
[docs-master-badge]: https://img.shields.io/badge/docs-master-blue [docs-master-badge]: https://img.shields.io/badge/docs-master-blue
[docs-master-url]: https://tracing-rs.netlify.com/tracing_subscriber [docs-master-url]: https://tracing-rs.netlify.com/tracing_subscriber
[mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg [mit-badge]: https://img.shields.io/badge/license-MIT-blue.svg

View File

@ -49,7 +49,7 @@
//! [`env_logger` crate]: https://crates.io/crates/env_logger //! [`env_logger` crate]: https://crates.io/crates/env_logger
//! [`parking_lot`]: https://crates.io/crates/parking_lot //! [`parking_lot`]: https://crates.io/crates/parking_lot
//! [`registry`]: registry/index.html //! [`registry`]: registry/index.html
#![doc(html_root_url = "https://docs.rs/tracing-subscriber/0.2.4")] #![doc(html_root_url = "https://docs.rs/tracing-subscriber/0.2.6")]
#![cfg_attr(docsrs, feature(doc_cfg))] #![cfg_attr(docsrs, feature(doc_cfg))]
#![warn( #![warn(
missing_debug_implementations, missing_debug_implementations,