Releases: tokio-rs/tracing
tracing-journald 0.2.3
Fixed
- Fixed missing
memfd_create
withglibc
versions < 2.25 (#1912)
Changed
- Updated minimum supported Rust version to 1.49.0 (#1913)
Thanks to @9999years for contributing to this release!
tracing-subscriber 0.3.8
This release adds experimental support for recording structured field
values using the valuable
crate to the format::Json
formatter. In
particular, user-defined types which are recorded using their
valuable::Valuable
implementations will be serialized as JSON objects,
rather than using their fmt::Debug
representation. See this blog post
for details on valuable
.
Note that valuable
support currently requires --cfg tracing_unstable
. See
the documentation for details.
Additionally, this release includes a number of other smaller API improvements.
Added
- json: Experimental support for recording
valuable
values as structured
JSON (#1862, #1901) - filter:
Targets::would_enable
method for testing if aTargets
filter
would enable a given target (#1903) - fmt:
map_event_format
,map_fmt_fields
, andmap_writer
methods to
fmt::Layer
andfmt::SubscriberBuilder
(#1871)
Changed
tracing-core
: updated to 0.1.22
Fixed
- Set
smallvec
minimal version to 1.2.0, to fix compilation errors with-Z minimal-versions
(#1890) - Minor documentation fixes (#1902, #1893)
Thanks to @guswynn, @glts, and @lilyball for contributing to this release!
tracing-serde 0.1.3
This release adds experimental support for recording structured field
values using the valuable
crate. See this blog post for
details on valuable
.
Note that valuable
support currently requires --cfg tracing_unstable
. See the documentation for details.
Added
- valuable: Experimental support for serializing user-defined types using
valuable
andvaluable-serde
(#1862) - Support for serializing
f64
values (#1507)
Fixed
- Fixed incorrect size hint in
SerializeFieldSet
(#1333) - A number of documentation fixes
Thanks to @akinnane and @maxburke for contributing to this release!
tracing-opentelemetry 0.17.0
Breaking Changes
- Upgrade to
v0.17.0
ofopentelemetry
(#1853)
For list of breaking changes in OpenTelemetry, see the
v0.17.0 changelog.
tracing-core 0.1.22
This release adds experimental support for recording structured field values
using the valuable
crate. See this blog post for details on
valuable
.
Note that valuable
support currently requires --cfg tracing_unstable
. See
the documentation for details.
Added
- field: Experimental support for recording field values using the
valuable
crate (#1608, #1888, #1887) - field: Added
ValueSet::record
method (#1823) - subscriber:
Default
impl forNoSubscriber
(#1785) - metadata: New
Kind::HINT
to support theenabled!
macro intracing
(#1883, #1891)
Fixed
Thanks to @xd009642, @Skepfyr, @guswynn, @Folyd, and @mbergkvist for
contributing to this release!
tracing-attributes 0.1.19
This release introduces a new #[instrument(ret)]
argument to emit an event
with the return value of an instrumented function.
Added
#[instrument(ret)]
to record the return value of a function (#1716)- added
err(Debug)
argument to cause#[instrument(err)]
to record errors
withDebug
rather than `Display (#1631)
Fixed
- incorrect code generation for functions returning async blocks (#1866)
- incorrect diagnostics when using
rust-analyzer
(#1634)
Thanks to @Swatinem, @hkmatsumoto, @cynecx, and @ciuncan for contributing to
this release!
tracing 0.1.30
This release adds experimental support for recording structured field
values using the valuable
crate. See this blog post for
details on valuable
.
Note that valuable
support currently requires --cfg tracing_unstable
. See
the documentation for details.
This release also adds a new enabled!
macro for testing if a span or event
would be enabled.
Added
- field: Experimental support for recording field values using the
valuable
crate (#1608, #1888, #1887) enabled!
macro for testing if a span or event is enabled (#1882)
Changed
Fixed
- log: Fixed "use of moved value" compiler error when the "log" feature is
enabled (#1823) - Fixed macro hygiene issues when used in a crate that defines its own
concat!
macro (#1842) - A very large number of documentation fixes and improvements.
Thanks to @@vlad-scherbina, @Skepfyr, @Swatinem, @guswynn, @teohhanhui,
@xd009642, @tobz, @d-e-s-o@0b01, and @nickelc for contributing to this release!
tracing-subscriber 0.3.7
This release adds combinators for combining filters.
Additionally, this release also updates the thread-local
crate to v1.1.4,
fixing warnings for the security advisory RUSTSEC-2022-0006. Note that
previous versions of tracing-subscriber
did not use any of the thread-local
crate's APIs effected by the vulnerability. However, updating the version fixes
warnings emitted by cargo audit
and similar tools.
Added
- filter: Added combinators for combining filters (#1578)
Fixed
- registry: Updated
thread-local
to v1.1.4 (#1858)
Thanks to new contributor @matze for contributing to this release!
tracing-subscriber 0.3.6
This release adds configuration options to tracing_subscriber::fmt
to log
source code locations for events.
Added
- fmt: Added
with_file
andwith_line_number
configuration methods tofmt::Format
,fmt::SubscriberBuilder
, and
fmt::Layer
(#1773)
Fixed
- fmt: Removed incorrect leading comma from span fields with the
Pretty
formatter (#1833)
Deprecated
- fmt: Deprecated
Pretty::with_source_location
, as it can now be replaced
by the more generalFormat
,SubscriberBuilder
, andLayer
methods
(#1773)
Thanks to new contributor @renecouto for contributing to this release!