Releases: tokio-rs/tracing
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
withDebugrather 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
valuablecrate (#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-localto 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_fileandwith_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, andLayermethods
(#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_identifiermethod 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
OffsetLocalTimeformatter tofmt::timefor formatting local
timestamps with a fixed offset (#1772)
Fixed
- fmt: Added a
Targetsfilter tofmt::init()andfmt::try_init()when
the "env-filter" feature is disabled, so thatRUST_LOGis 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
EMSGSIZEwhen log entries exceed a certain size (#1744)
A huge thank-you to new contributor @lunaryorn, for contributing all of the
changes in this release!
tracing-subscriber 0.3.4
This release contains bugfixes for the fmt module, as well as documentation
improvements.
Fixed
- fmt: Fixed
fmtnot emitting log lines when timestamp formatting fails
(#1689) - fmt: Fixed double space before thread IDs with
Prettyformatter
(#1778) - Several documentation improvements (#1608, #1699, #1701)
Thanks to new contributors @Swatinem and @rukai for contributing to this
release!
tracing-subscriber 0.3.3
tracing-subscriber 0.3.2
Fixed
- fmt: Fixed
MakeWriterfiltering not working withBoxMakeWriter
(#1694)
Added
- fmt:
Writer::has_ansi_escapesmethod to check if an output
supports ANSI terminal formatting escape codes (#1696) - fmt: Added additional ANSI terminal formatting to field formatters
when supported (#1702) - fmt: Added
FmtContext::span_scope,FmtContext::event_scope,
andFmtContext::parent_spanmethods for accessing the current span
and its scope when formatting an event (#1728) - fmt: Improved documentation on implementing event formatters (#1727)