Skip to content

Releases: tokio-rs/tracing

tracing-attributes 0.1.19

04 Feb 01:01
46eda1e

Choose a tag to compare

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
    with Debug 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

04 Feb 01:24
df4ba17

Choose a tag to compare

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

  • tracing-core: updated to 0.1.22
  • tracing-attributes: updated to 0.1.19

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

25 Jan 20:25
24ee184

Choose a tag to compare

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

14 Jan 21:16
f835405

Choose a tag to compare

This release adds configuration options to tracing_subscriber::fmt to log
source code locations for events.

Added

  • fmt: Added with_file and with_line_number
    configuration methods to fmt::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 general Format, SubscriberBuilder, and Layer methods
    (#1773)

Thanks to new contributor @renecouto for contributing to this release!

tracing-journald 0.2.2

14 Jan 21:22
af254a1

Choose a tag to compare

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

30 Dec 00:22
06914c1

Choose a tag to compare

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 to fmt::time for formatting local
    timestamps with a fixed offset (#1772)

Fixed

  • fmt: Added a Targets filter to fmt::init() and fmt::try_init() when
    the "env-filter" feature is disabled, so that RUST_LOG is still honored
    (#1781)

Thanks to @marienz and @ishitatsuyuki for contributing to this release!

tracing-journald 0.2.1

30 Dec 00:27
1413148

Choose a tag to compare

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!

tracing-subscriber 0.3.4

25 Dec 18:24
5f90bf4

Choose a tag to compare

This release contains bugfixes for the fmt module, as well as documentation
improvements.

Fixed

  • fmt: Fixed fmt not emitting log lines when timestamp formatting fails
    (#1689)
  • fmt: Fixed double space before thread IDs with Pretty formatter
    (#1778)
  • Several documentation improvements (#1608, #1699, #1701)

Thanks to new contributors @Swatinem and @rukai for contributing to this
release!

tracing-subscriber 0.3.3

29 Nov 22:51
a26ccd8

Choose a tag to compare

This release fixes a pair of regressions in tracing-subscriber's fmt
module.

Fixed

  • fmt: Fixed missing event fields with Compact formatter (#1755)
  • fmt: Fixed PrettyFields formatter (and thus format::Pretty
    event formatter) ignoring the fmt::Layer's ANSI color code
    configuration (#1747)

tracing-subscriber 0.3.2

20 Nov 01:15
950637d

Choose a tag to compare

Fixed

  • fmt: Fixed MakeWriter filtering not working with BoxMakeWriter
    (#1694)

Added

  • fmt: Writer::has_ansi_escapes method 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,
    and FmtContext::parent_span methods for accessing the current span
    and its scope when formatting an event (#1728)
  • fmt: Improved documentation on implementing event formatters (#1727)