Skip to content

Releases: tokio-rs/tracing

tracing-core 0.1.30

06 Oct 17:53
tracing-core-0.1.30
8b01ea9

Choose a tag to compare

This release of tracing-core adds a new on_register_dispatch method to the
Subscriber trait to allow the Subscriber to perform initialization after
being registered as a Dispatch, and a WeakDispatch type to allow a
Subscriber to store its own Dispatch without creating reference count
cycles.

Added

  • Subscriber::on_register_dispatch method (#2269)
  • WeakDispatch type and Dispatch::downgrade() function (#2293)

Thanks to @jswrenn for contributing to this release!

tracing-attributes 0.1.23

06 Oct 19:02
tracing-attributes-0.1.23
64b221d

Choose a tag to compare

This release of tracing-attributes fixes a bug where compiler diagnostic spans
for type errors in #[instrument]ed async fns have the location of the
#[instrument] attribute rather than the location of the actual error, and a
bug where inner attributes in #[instrument]ed functions would cause a compiler
error.

Fixed

  • Fix incorrect handling of inner attributes in #[instrument]ed functions (#2307)
  • Add fake return to improve spans generated for type errors in async fns (#2270)
  • Updated syn dependency to fix compilation with -Z minimal-versions
    (#2246)

Thanks to new contributors @compiler-errors and @e-nomem, as well as @CAD97, for
contributing to this release!

tracing 0.1.37

06 Oct 19:40
tracing-0.1.37
8e35927

Choose a tag to compare

This release of tracing incorporates changes from tracing-core
v0.1.30 and tracing-attributes v0.1.23,
including the new Subscriber::on_register_dispatch method for performing late
initialization after a Subscriber is registered as a Dispatch, and bugfixes
for the #[instrument] attribute. Additionally, it fixes instances of the
bare_trait_objects lint, which is now a warning on tracing's MSRV and will
become an error in the next edition.

Fixed

  • attributes: Incorrect handling of inner attributes in #[instrument]ed
    functions (#2307)
  • attributes: Incorrect location of compiler diagnostic spans generated for
    type errors in #[instrument]ed async fns (#2270)
  • attributes: Updated syn dependency to fix compilation with -Z minimal-versions (#2246)
  • bare_trait_objects warning in valueset! macro expansion (#2308)

Added

  • core: Subscriber::on_register_dispatch method (#2269)
  • core: WeakDispatch type and Dispatch::downgrade() function (#2293)

Changed

  • tracing-core: updated to 0.1.30
  • tracing-attributes: updated to 0.1.23

Documented

Thanks to new contributors @compiler-errors, @e-nomem, @WorldSEnder, @Xiami2012,
and @tl-rodrigo-gryzinski, as well as @jswrenn and @CAD97, for contributing to
this release!

tracing-opentelemetry 0.18.0

19 Sep 18:54
tracing-opentelemetry-0.18.0
a4f2ee2

Choose a tag to compare

Breaking Changes

  • Upgrade to v0.18.0 of opentelemetry (#2303)
    For list of breaking changes in OpenTelemetry, see the
    v0.18.0 changelog.

Fixed

  • on_event respects event's explicit parent (#2296)

Thanks to @wprzytula for contributing to this release!

tracing-core 0.1.29

29 Jul 19:46
275eded

Choose a tag to compare

This release of tracing-core adds PartialEq and Eq implementations for
metadata types, and improves error messages when setting the global default
subscriber fails.

Added

  • PartialEq and Eq implementations for Metadata (#2229)
  • PartialEq and Eq implementations for FieldSet (#2229)

Fixed

  • Fixed unhelpful fmt::Debug output for dispatcher::SetGlobalDefaultError
    (#2250)
  • Fixed compilation with -Z minimal-versions (#2246)

Thanks to @jswrenn and @CAD97 for contributing to this release!

tracing 0.1.36

29 Jul 21:19
5a141ea

Choose a tag to compare

This release adds support for owned values and fat pointers as arguments to the
Span::record method, as well as updating the minimum tracing-core version
and several documentation improvements.

Fixed

  • Incorrect docs in dispatcher::set_default (#2220)
  • Compilation with -Z minimal-versions (#2246)

Added

  • Support for owned values and fat pointers in Span::record (#2212)
  • Documentation improvements (#2208, #2163)

Changed

  • tracing-core: updated to 0.1.29

Thanks to @fredr, @cgbur, @jyn514, @matklad, and @CAD97 for contributing to this
release!

tracing-subscriber 0.3.15

20 Jul 19:37
290eff2

Choose a tag to compare

This release fixes a bug where the reload layer would fail to pass through
max_level_hint to the underlying layer, potentially breaking filtering.

Fixed

  • reload: pass through max_level_hint to the inner Layer (#2204)

Thanks to @guswynn for contributing to this release!

tracing-subscriber 0.3.14

01 Jul 17:52
9638587

Choose a tag to compare

This release fixes multiple filtering bugs in the Layer implementations for
Option<impl Layer> and Vec<impl Layer>.

Fixed

  • layer: Layer::event_enabled implementation for Option<impl Layer<S>>
    returning false when the Option is None, disabling all events globally
    (#2193)
  • layer: Layer::max_level_hint implementation for Option<impl Layer<S>>
    incorrectly disabling max level filtering when the option is None (#2195)
  • layer: Layer::max_level_hint implementation for Vec<impl Layer<S>>
    returning LevelFilter::ERROR rather than LevelFilter::OFF when the Vec
    is empty (#2195)

Thanks to @CAD97 and @guswynn for contributing to this release!

tracing-opentelemetry 0.17.4

01 Jul 18:01
6752895

Choose a tag to compare

This release adds optional support for recording std::error::Errors using
[OpenTelemetry's semantic conventions for exceptions][exn-semconv].

Added

  • Layer::with_exception_fields to enable emitting exception.message and
    exception.backtrace semantic-convention fields when an Error is recorded
    as a span or event field (#2135)
  • Layer::with_exception_field_propagation to enable setting exception.message and
    exception.backtrace semantic-convention fields on the current span when an
    event with an Error field is recorded (#2135)

Thanks to @lilymara-onesignal for contributing to this release!

tracing-attributes 0.1.22

01 Jul 18:18
9c4bd43

Choose a tag to compare

This release fixes an issue where using the err or ret arguments to
#[instrument] along with an overridden target, such as

#[instrument(target = "...", err, ret)]

would not propagate the overridden target to the events generated for
errors/return values.

Fixed

  • Error and return value events generated by #[instrument(err)] or
    #[instrument(ret)] not inheriting an overridden target (#2184)
  • Incorrect default level in documentation (#2119)

Thanks to new contributor @tbraun96 for contributing to this release!