Skip to content

Releases: tokio-rs/tracing

tracing-core 0.1.21

06 Oct 18:25
3ee87f3
Compare
Choose a tag to compare

0.1.21 (October 1, 2021)

This release adds support for recording Option<T> where T: Value as
typed tracing field values.

Added

  • field: Value impl for Option<T> where T: Value (#1585)

Fixed

  • Fixed deprecation warnings when building with default-features
    disabled (#1603, #1606)
  • Documentation fixes and improvements (#1595, #1601)

Thanks to @BrianBurgers, @DCjanus, and @matklad for contributing to this
release!

tracing-attributes 0.1.17

06 Oct 18:23
66cd79f
Compare
Choose a tag to compare

0.1.17 (October 1, 2021)

This release significantly improves performance when
#[instrument]-generated spans are below the maximum enabled level.

Added

  • improve performance when skipping #[instrument]-generated spans
    below the max level (#1600, #1605)

Thanks to @oli-obk for contributing to this release!

tracing-subscriber 0.2.24

06 Oct 18:23
9ac27fb
Compare
Choose a tag to compare

0.2.24 (September 19, 2021)

This release contains a number of bug fixes, including a fix for
tracing-subscriber failing to compile on the minimum supported Rust
version of 1.42.0. It also adds IntoIterator implementations for the
Targets type.

Fixed

  • Fixed compilation on Rust 1.42.0 (#1580, #1581)
  • registry: Ensure per-layer filter enabled state is cleared when
    a global filter short-circuits filter evaluation (#1575)
  • layer: Fixed Layer::on_layer not being called for Boxed
    Layers, which broke per-layer filtering (#1576)

Added

  • filter: Added Targets::iter, returning an iterator over the set
    of target-level pairs enabled by a Targets filter (#1574)
  • filter: Added IntoIterator implementations for Targets and
    &Targets (#1574)

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

tracing 0.1.28

06 Oct 18:22
2b52564
Compare
Choose a tag to compare

0.1.28 (September 17th, 2021)

This release fixes an issue where the RustDoc documentation was rendered
incorrectly. It doesn't include any actual code changes, and is very
boring and can be ignored.

Fixed

  • docs: Incorrect documentation rendering due to unclosed <div>
    tag (#1572)

tracing-subscriber 0.2.23

16 Sep 18:42
a792aa8
Compare
Choose a tag to compare

This release fixes a few bugs in the per-layer filtering API added in
v0.2.21.

Fixed

  • env-filter: Fixed excessive EnvFilter memory use (#1568)
  • filter: Fixed a panic that may occur in debug mode when using
    per-layer filters together with global filters (#1569)
  • Fixed incorrect documentation formatting (#1572)

tracing-subscriber 0.2.22

13 Sep 18:21
00ffaee
Compare
Choose a tag to compare

This fixes a regression where the filter::ParseError type was
accidentally renamed.

Fixed

  • filter: Fix filter::ParseError accidentally being renamed to
    filter::DirectiveParseError (#1558)

tracing-attributes 0.1.16

13 Sep 18:43
47036aa
Compare
Choose a tag to compare

This release adds a new #[instrument(skip_all)] option to skip recording all
arguments to an instrumented function as fields. Additionally, it adds support
for recording arguments that are tracing primitive types as typed values,
rather than as fmt::Debug.

Added

  • add skip_all option to #[instrument] (#1548)
  • record primitive types as primitive values rather than as fmt::Debug
    (#1378)
  • added support for f64s as typed values (#1522)

Thanks to @Folyd and @jsgf for contributing to this release!

tracing 0.1.27

13 Sep 19:06
c24621f
Compare
Choose a tag to compare

This release adds a new Span::or_current method to aid in
efficiently propagating span contexts to spawned threads or tasks.
Additionally, it updates the tracing-core version to 0.1.20 and
the tracing-attributes version to 0.1.16, ensuring that a number
of new features in those crates are present.

Fixed

  • instrument: Added missing WithSubscriber implementations for
    futures and other types (#1424)

Added

  • Span::or_current method, to help with efficient span context
    propagation (#1538)
  • attributes: add skip_all option to #[instrument] (#1548)
  • attributes: record primitive types as primitive values rather than
    as fmt::Debug (#1378)
  • core: NoSubscriber, a no-op Subscriber implementation
    (#1549)
  • core: Added Visit::record_f64 and support for recording
    floating-point values (#1507, #1522)
  • A large number of documentation improvements and fixes (#1369,
    #1398, #1435, #1442, #1524, #1556)

Thanks to new contributors @dzvon and @mbergkvist, as well as @teozkr,
@maxburke, @LukeMathWalker, and @jsgf, for contributing to this release!

tracing-subscriber 0.2.21

12 Sep 22:44
47f1cd2
Compare
Choose a tag to compare

This release introduces the Filter trait, a new API for per-layer
filtering
. This allows controlling which spans and events are
recorded by various layers individually, rather than globally.

In addition, it adds a new Targets filter, which provides a
lighter-weight version of the filtering provided by EnvFilter, as
well as other smaller API improvements and fixes.

Deprecated

  • registry: SpanRef::parent_id, which cannot properly support
    per-layer filtering. Use .parent().map(SpanRef::id) instead.
    (#1523)

Fixed

  • layer Context methods that are provided when the Subscriber
    implements LookupSpan no longer require the "registry" feature flag
    (#1525)
  • layer fmt::Debug implementation for Layered no longer requires
    the S type parameter to implement Debug (#1528)

Added

  • registry: Filter trait, Filtered type, Layer::with_filter
    method, and other APIs for per-layer filtering (#1523)
  • filter: FilterFn and DynFilterFn types that implement global
    (Layer) and per-layer (Filter) filtering for closures and function
    pointers (#1523)
  • filter: Targets filter, which implements a lighter-weight form
    of EnvFilter-like filtering (#1550)
  • env-filter: Added support for filtering on floating-point values
    (#1507)
  • layer: Layer::on_layer callback, called when layering the
    Layer onto a Subscriber (#1523)
  • layer: Layer implementations for Box<L> and Arc<L> where L: Layer (#1536)
  • layer: Layer implementations for Box<dyn Layer> and
    Arc<dyn Layer> (#1536)
  • A number of small documentation fixes and improvements (#1553,
    #1544, #1539, #1524)

Special thanks to new contributors @jsgf and @maxburke for contributing
to this release!

tracing-core 0.1.20

13 Sep 18:22
c4b0058
Compare
Choose a tag to compare

This release adds support for f64 as one of the tracing-core
primitive field values, allowing floating-point values to be recorded as
typed values rather than with fmt::Debug. Additionally, it adds
NoSubscriber, a Subscriber implementation that does nothing.

Added

  • subscriber: NoSubscriber, a no-op Subscriber implementation
    (#1549)
  • field: Added Visit::record_f64 and support for recording
    floating-point values (#1507)

Thanks to new contributors @jsgf and @maxburke for contributing to this
release!