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 recordingstd::error::Error
values (#2122)Layer::with_location
method (replacesLayer::with_event_location
)
(#2124)
Changed
std::error::Error
values are now recorded usingfmt::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 toLayer::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!