Skip to content

Releases: tokio-rs/tracing

tracing-journald 0.2.3

08 Feb 02:11
3280f79
Compare
Choose a tag to compare

Fixed

  • Fixed missing memfd_create with glibc 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

04 Feb 20:32
b37220c
Compare
Choose a tag to compare

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 a Targets filter
    would enable a given target (#1903)
  • fmt: map_event_format, map_fmt_fields, and map_writer methods to
    fmt::Layer and fmt::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

04 Feb 19:44
c661c23
Compare
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.

Added

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

04 Feb 00:16
Compare
Choose a tag to compare

Breaking Changes

  • Upgrade to v0.17.0 of opentelemetry (#1853)
    For list of breaking changes in OpenTelemetry, see the
    v0.17.0 changelog.

tracing-core 0.1.22

04 Feb 01:11
0f8326b
Compare
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.

Added

  • field: Experimental support for recording field values using the
    valuable crate (#1608, #1888, #1887)
  • field: Added ValueSet::record method (#1823)
  • subscriber: Default impl for NoSubscriber (#1785)
  • metadata: New Kind::HINT to support the enabled! macro in tracing
    (#1883, #1891)

Fixed

Thanks to @xd009642, @Skepfyr, @guswynn, @Folyd, and @mbergkvist for
contributing to this release!

tracing-attributes 0.1.19

04 Feb 01:01
46eda1e
Compare
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
Compare
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
Compare
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
Compare
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
Compare
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!