Releases: tokio-rs/tracing
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!
tracing-journald 0.2.2
Added
- Include a syslog identifier in log messages (#1822)
- Added
Layer::with_syslog_identifier
method to override the syslog identifier
(#1822)
Thanks to @lunaryorn for contributing to this release!
tracing-subscriber 0.3.5
This release re-enables RUST_LOG
filtering in tracing_subscriber::fmt
's
default initialization methods, and adds an OffsetLocalTime
formatter for
using local timestamps with the time
crate.
Added
- fmt: Added
OffsetLocalTime
formatter tofmt::time
for formatting local
timestamps with a fixed offset (#1772)
Fixed
- fmt: Added a
Targets
filter tofmt::init()
andfmt::try_init()
when
the "env-filter" feature is disabled, so thatRUST_LOG
is still honored
(#1781)
Thanks to @marienz and @ishitatsuyuki for contributing to this release!
tracing-journald 0.2.1
This release improves how tracing-journald
communicates with journald
,
including the handling of large payloads.
Added
- Use an unconnected socket, so that logging can resume after a
journald
restart (#1758)
Fixed
- Fixed string values being written using
fmt::Debug
(#1714) - Fixed
EMSGSIZE
when log entries exceed a certain size (#1744)
A huge thank-you to new contributor @lunaryorn, for contributing all of the
changes in this release!