Releases: tokio-rs/tracing
tracing-error v0.2.0
This is a breaking change release in order to update the
tracing-subscriber dependency version to the v0.3.x release
series.
Changed
Fixed
- Disabled default features of the
tracingdependency so that
proc-macro dependencies are not enabled (#1144) - Documentation fixes and improvements (#635, #695)
Added
- SpanTrace: Added
SpanTrace::newconstructor for constructing a
SpanTracefrom aSpanpassed as an argument (rather than capturing
the current span) (#1492)
Thanks to @CAD97 for contributing to this release!
tracing-subscriber v0.3.0
This is a breaking release of tracing-subscriber. The primary breaking
change in this release is the removal of the dependency on the chrono
crate, due to RUSTSEC-2020-0159. To replace chrono, support is
added for formatting timestamps using the time crate instead.
In addition, this release includes a number of other breaking API
changes, such as adding (limited) support for #![no_std] targets,
removing previously deprecated APIs, and more.
Breaking Changes
- Removed APIs deprecated in the v0.2.x release series.
- Renamed
Layer::new_spantoLayer::on_new_span(#1674) - Removed
Layerimpl forArc<L: Layer<S>>andArc<dyn Layer<S> + ...>
(#1649) - Replaced the
chronocrate with thetimecrate for timestamp
formatting, to resolve RUSTSEC-2020-0159 (#1646) - Removed
jsonandenv-filterfrom default features. They must now
be enabled explicitly (#1647). This means thatRUST_LOG-based filters will not
work unless theenv-filterfeature is enabled. - Changed
FormatEvent::format_eventandFormatFields::format_fields
trait methods to take aWritertype, rather than a&mut dyn fmt::Writetrait object (#1661) - Changed the signature of the
MakeWritertrait by adding a lifetime
parameter (#781)
Changed
- layer: Renamed
Layer::new_spantoLayer::on_new_span(#1674) - fmt: Changed
FormatEvent::format_eventand
FormatFields::format_fieldstrait methods to take aWritertype,
rather than a&mut dyn fmt::Writetrait object (#1661) - json, env-filter:
jsonandenv-filterfeature flags are no
longer enabled by default (#1647)
Removed
-
Removed deprecated
CurrentSpantype (#1320) -
registry: Removed deprecated
SpanRef::parentsiterator, replaced
bySpanRef::scopein [#1431] ([#1648)]) -
layer: Removed deprecated
Context::scopeiterator, replaced by
Context::span_scopeandContext::event_scopein #1431 and
#1434 (#1648) -
layer: Removed
Layerimpl forArc<L: Layer<S>>andArc<dyn Layer<S> + ...>. These interfere with per-layer filtering. (#1649) -
fmt: Removed deprecated
LayerBuildertype (#1673) -
fmt: Removed
fmt::Layer::on_event(renamed to
fmt::Layer::fmt_event) (#1673) -
fmt, chrono: Removed the
chronofeature flag and APIs for
using thechronocrate for timestamp formatting (#1646)Added
-
fmt, time:
LocalTimeandUtcTimetypes for formatting
timestamps using thetimecrate (#1646) -
fmt: Added a lifetime parameter to the
MakeWritertrait,
allowing it to return a borrowed writer. This enables implementations
ofMakeWriterfor types such asMutex<T: io::Write>and
std::fs::File. (#781) -
env-filter: Documentation improvements (#1637)
-
Support for some APIs on
#![no_std]targets, by disabling thestd
feature flag (#1660)
Thanks to @Folyd and @nmathewson for contributing to this release!
tracing 0.1.29
This release adds support for recording Option<T> where T: Value as
typed tracing field values. It also includes significant performance
improvements for functions annotated with the #[instrument] attribute
when the generated span is disabled.
Changed
tracing-core: updated to v0.1.21tracing-attributes: updated to v0.1.19
Added
- field:
Valueimpl forOption<T> where T: Value(#1585) - attributes: - improved performance when skipping
#[instrument]-generated spans below the max level (#1600, #1605,
#1614, #1616, #1617)
Fixed
- instrument: added missing
Futureimplementation for
WithSubscriber, making theWithDispatchextension trait actually
useable (#1602) - Documentation fixes and improvements (#1595, #1601, #1597)
Thanks to @BrianBurgers, @mattiast, @DCjanus, @oli-obk, and @matklad for
contributing to this release!
tracing-subscriber 0.2.25
0.2.25 (October 5, 2021)
This release fixes an issue where a Layer implementation's custom
downcast_raw implementation was lost when wrapping that layer with a
per-layer filter.
Fixed
- registry: Forward
Filtered::downcast_rawto wrappedLayer
(#1619)
Added
Thanks to @bryanburgers for contributing to this release!
tracing-attributes 0.1.18
0.1.18 (October 5, 2021)
This release fixes issues introduced in v0.1.17.
Fixed
- fixed mismatched types compiler error that may occur when using
#[instrument]on anasync fnthat returns animpl Traitvalue
that includes a closure (#1616) - fixed false positives for
clippy::suspicious_else_formatting
warnings due to rust-lang/rust-clippy#7760 and
rust-lang/rust-clippy#6249 (#1617) - fixed
clippy::let_unit_valuelints when using#[instrument]
(#1614)
tracing-core 0.1.21
0.1.21 (October 1, 2021)
This release adds support for recording Option<T> where T: Value as
typed tracing field values.
Added
- field:
Valueimpl forOption<T> where T: Value(#1585)
Fixed
- Fixed deprecation warnings when building with
default-features
disabled (#1603, #1606) - Documentation fixes and improvements (#1595, #1601)
Thanks to @BrianBurgers, @DCjanus, and @matklad for contributing to this
release!
tracing-attributes 0.1.17
0.1.17 (October 1, 2021)
This release significantly improves performance when
#[instrument]-generated spans are below the maximum enabled level.
Added
Thanks to @oli-obk for contributing to this release!
tracing-subscriber 0.2.24
0.2.24 (September 19, 2021)
This release contains a number of bug fixes, including a fix for
tracing-subscriber failing to compile on the minimum supported Rust
version of 1.42.0. It also adds IntoIterator implementations for the
Targets type.
Fixed
- Fixed compilation on Rust 1.42.0 (#1580, #1581)
- registry: Ensure per-layer filter
enabledstate is cleared when
a global filter short-circuits filter evaluation (#1575) - layer: Fixed
Layer::on_layernot being called forBoxed
Layers, which broke per-layer filtering (#1576)
Added
- filter: Added
Targets::iter, returning an iterator over the set
of target-level pairs enabled by aTargetsfilter (#1574) - filter: Added
IntoIteratorimplementations forTargetsand
&Targets(#1574)
Thanks to new contributor @connec for contributing to this release!
tracing 0.1.28
0.1.28 (September 17th, 2021)
This release fixes an issue where the RustDoc documentation was rendered
incorrectly. It doesn't include any actual code changes, and is very
boring and can be ignored.
Fixed
- docs: Incorrect documentation rendering due to unclosed
<div>
tag (#1572)
tracing-subscriber 0.2.23
This release fixes a few bugs in the per-layer filtering API added in
v0.2.21.