github tokio-rs/tracing tracing-opentelemetry-0.17.3
tracing-opentelemetry 0.17.3

This release adds support for emitting thread names and IDs to OpenTelemetry, as
well as recording std::error::Error values in a structured manner with their
source chain included. Additionally, this release fixes issues related to event
and span source code locations.

Added

  • Layer::with_threads to enable recording thread names/IDs according to
    OpenTelemetry semantic conventions (#2134)
  • Error::source chain when recording std::error::Error values (#2122)
  • Layer::with_location method (replaces Layer::with_event_location)
    (#2124)

Changed

  • std::error::Error values are now recorded using fmt::Display rather than
    fmt::Debug (#2122)

Fixed

  • Fixed event source code locations overwriting the parent span's source
    location (#2099)
  • Fixed Layer::with_event_location not controlling whether locations are
    emitted for spans as well as events (#2124)

Deprecated

  • Layer::with_event_location: renamed to Layer::with_location, as it now
    controls both span and event locations (#2124)

Thanks to new contributors @lilymara-onesignal, @hubertbudzynski, and @DevinCarr
for contributing to this release!

Don't miss a new tracing release

NewReleases is sending notifications on new releases.