Update Rust crate tracing-subscriber to 0.3 #23

Merged
jheuel merged 1 commits from renovate/tokio-tracing-monorepo into main 2025-03-05 03:37:41 +01:00
Collaborator

This PR contains the following updates:

Package Type Update Change
tracing-subscriber (source) dependencies minor 0.2 -> 0.3

Release Notes

tokio-rs/tracing (tracing-subscriber)

v0.3.19: tracing-subscriber 0.3.19

Compare Source

[ crates.io ] | [ docs.rs ]

This release updates the tracing dependency to v0.1.41 and
the tracing-serde dependency to v0.2.0.

Added
  • Add set_span_events to fmt::Subscriber (#​2962)
  • tracing: Allow &[u8] to be recorded as event/span field (#​2954)
Changed
  • Set log max level when reloading (#​1270)
  • Bump MSRV to 1.63 (#​2793)
  • Use const thread_locals when possible (#​2838)
  • Don't gate with_ansi() on the "ansi" feature (#​3020)
  • Updated tracing-serde to 0.2.0 (#​3160)

v0.3.18: tracing-subscriber 0.3.18

Compare Source

This release of tracing-subscriber adds support for the [NO_COLOR][NO_COLOR] environment
variable (an informal standard to disable emitting ANSI color escape codes) in
fmt::Layer, reintroduces support for the [chrono][chrono] crate, and increases the
minimum supported Rust version (MSRV) to Rust 1.63.0.

It also introduces several minor API improvements.

Added
  • chrono: Add [chrono][chrono] implementations of FormatTime (#​2690)
  • subscriber: Add support for the [NO_COLOR][NO_COLOR] environment variable in
    fmt::Layer (#​2647)
  • fmt: make format::Writer::new() public (#​2680)
  • filter: Implement layer::Filter for Option<Filter> (#​2407)
Changed
  • log: bump version of tracing-log to 0.2 (#​2772)
  • Increased minimum supported Rust version (MSRV) to 1.63.0+.

Thanks to @​shayne-fletcher, @​dmlary, @​kaifastromai, and @​jsgf for contributing!

v0.3.17: tracing-subscriber 0.3.17

Compare Source

This release of tracing-subscriber fixes a build error when using env-filter
with recent versions of the regex crate. It also introduces several minor API
improvements.

Fixed
  • env-filter: Add "unicode-case" and "unicode-perl" to the regex
    dependency, fixing a build error with recent versions of regex (#​2566)
  • A number of minor documentation typos and other fixes (#​2384, #​2378,
    #​2368, #​2548)
Added
  • filter: Add fmt::Display impl for filter::Targets (#​2343)
  • fmt: Made with_ansi(false) no longer require the "ansi" feature, so that
    ANSI formatting escapes can be disabled without requiring ANSI-specific
    dependencies (#​2532)
Changed
  • fmt: Dim targets in the Compact formatter, matching the default
    formatter (#​2409)

Thanks to @​keepsimple1, @​andrewhalle, @​LeoniePhiline, @​LukeMathWalker,
@​howardjohn, @​daxpedda, and @​dbidwell94 for contributing to this release!

v0.3.16: tracing-subscriber 0.3.16

Compare Source

This release of tracing-subscriber fixes a regression introduced in
v0.3.15 where Option::None's Layer implementation would
set the max level hint to OFF. In addition, it adds several new APIs,
including the Filter::event_enabled method for filtering events based on
fields values, and the ability to log internal errors that occur when writing a
log line.

This release also replaces the dependency on the unmaintained [ansi-term]
crate with the [nu-ansi-term] crate, resolving an informational security
advisory (RUSTSEC-2021-0139) for [ansi-term]'s maintainance status. This
increases the minimum supported Rust version (MSRV) to Rust 1.50+, although the
crate should still compile for the previous MSRV of Rust 1.49+ when the ansi
feature is not enabled.

Fixed
  • layer: Option::None's Layer impl always setting the max_level_hint
    to LevelFilter::OFF (#​2321)
  • Compilation with -Z minimal versions (#​2246)
  • env-filter: Clarify that disabled level warnings are emitted by
    tracing-subscriber (#​2285)
Added
  • fmt: Log internal errors to stderr if writing a log line fails (#​2102)
  • fmt: FmtLayer::log_internal_errors and
    FmtSubscriber::log_internal_errors methods for configuring whether internal
    writer errors are printed to stderr (#​2102)
  • fmt: #[must_use] attributes on builders to warn if a Subscriber is
    configured but not set as the default subscriber (#​2239)
  • filter: Filter::event_enabled method for filtering an event based on its
    fields (#​2245, #​2251)
  • filter: Targets::default_level accessor ([#​2242])
Changed
  • ansi: Replaced dependency on unmaintained ansi-term crate with
    nu-ansi-term ((#​2287, fixes informational advisory RUSTSEC-2021-0139)
  • tracing-core: updated to 0.1.30
  • Minimum Supported Rust Version (MSRV) increased to Rust 1.50+ (when the
    ansi) feature flag is enabled (#​2287)
Documented
  • fmt: Correct inaccuracies in fmt::init documentation (#​2224)
  • filter: Fix incorrect doc link in filter::Not combinator (#​2249)

Thanks to new contributors @​cgbur, @​DesmondWillowbrook, @​RalfJung, and
@​poliorcetics, as well as returning contributors @​CAD97, @​connec, @​jswrenn,
@​guswynn, and @​bryangarza, for contributing to this release!

v0.3.15: tracing-subscriber 0.3.15

Compare Source

This release fixes a bug where the reload layer would fail to pass through
max_level_hint to the underlying layer, potentially breaking filtering.

Fixed
  • reload: pass through max_level_hint to the inner Layer (#​2204)

Thanks to @​guswynn for contributing to this release!

v0.3.14: tracing-subscriber 0.3.14

Compare Source

This release fixes multiple filtering bugs in the Layer implementations for
Option<impl Layer> and Vec<impl Layer>.

Fixed
  • layer: Layer::event_enabled implementation for Option<impl Layer<S>>
    returning false when the Option is None, disabling all events globally
    (#​2193)
  • layer: Layer::max_level_hint implementation for Option<impl Layer<S>>
    incorrectly disabling max level filtering when the option is None (#​2195)
  • layer: Layer::max_level_hint implementation for Vec<impl Layer<S>>
    returning LevelFilter::ERROR rather than LevelFilter::OFF when the Vec
    is empty (#​2195)

Thanks to @​CAD97 and @​guswynn for contributing to this release!

v0.3.13: tracing-subscriber 0.3.13

Compare Source

This release of tracing-subscriber fixes a compilation failure due to an
incorrect tracing-core dependency that was introduced in v0.3.12.

Changed
  • tracing_core: Updated minimum dependency version to 0.1.28 (#​2190)

v0.3.12: tracing-subscriber 0.3.12

Compare Source

This release of tracing-subscriber adds a new Layer::event_enabled method,
which allows Layers to filter events after their field values are recorded;
a Filter implementation for reload::Layer, to make using reload with
per-layer filtering more ergonomic, and additional inherent method downcasting
APIs for the Layered type. In addition, it includes dependency updates, and
minor fixes for documentation and feature flagging.

Added
  • layer: Layer::event_enabled method, which can be implemented to filter
    events based on their field values (#​2008)
  • reload: Filter implementation for reload::Layer (#​2159)
  • layer: Layered::downcast_ref and Layered::is inherent methods
    (#​2160)
Changed
  • parking_lot: Updated dependency on parking_lot to 0.13.0 (#​2143)
  • Replaced lazy_static dependency with once_cell ([#​2147])
Fixed

Thanks to @​ben0x539, @​jamesmunns, @​georgemp, @​james7132, @​jswrenn, @​CAD97, and
@​guswynn for contributing to this release!

v0.3.11: tracing-subscriber 0.3.11

Compare Source

This is a bugfix release for the Filter implementation for EnvFilter added
in v0.3.10.

Fixed
  • env-filter: Added missing Filter::on_record callback to EnvFilter's
    Filter impl (#​2058)
  • env-filter: Fixed method resolution issues when calling EnvFilter
    methods with both the Filter and Layer traits in scope (#​2057)
  • env-filter: Fixed EnvFilter::builder().parse() and other parsing methods
    returning an error when parsing an empty string (#​2052)

Thanks to new contributor @​Ma124 for contributing to this release!

v0.3.10: tracing-subscriber 0.3.10

Compare Source

This release adds several new features, including a Filter implementation and
new builder API for EnvFilter, support for using a Vec<L> where L: Layer as
a Layer, and a number of smaller API improvements to make working with dynamic
and reloadable layers easier.

Added
  • registry: Implement Filter for EnvFilter, allowing it to be used with
    per-layer filtering (#​1983)
  • registry: Filter::on_new_span, Filter::on_enter,
    Filter::on_exit, Filter::on_close and Filter::on_record callbacks to
    allow Filters to track span states internally (#​1973, #​2017, #​2031)
  • registry: Filtered::filter and Filtered::filter_mut accessors
    (#​1959)
  • registry: Filtered::inner and Filtered::inner_mut accessors to borrow
    the wrapped Layer (#​2034)
  • layer: Implement Layer for Vec<L: Layer>, to allow composing together
    a dynamically sized list of Layers (#​2027)
  • layer: Layer::boxed method to make type-erasing Layers easier
    (#​2026)
  • fmt: fmt::Layer::writer and fmt::Layer::writer_mut accessors (#​2034)
  • fmt: fmt::Layer::set_ansi method to allow changing the ANSI formatting
    configuration at runtime (#​2034)
  • env-filter: EnvFilter::builder to configure a new EnvFilter prior to
    parsing it (#​2035)
  • Several documentation fixes and improvements (#​1972, #​1971, #​2023,
    #​2023)
Fixed
  • fmt: fmt::Layer's auto traits no longer depend on the Subscriber type
    parameter's auto traits (#​2025)
  • env-filter: Fixed missing help text when the ansi feature is disabled
    (#​2029)

Thanks to new contributors @​TimoFreiberg and @​wagenet, as well as @​CAD97 for
contributing to this release!

v0.3.9: tracing-subscriber 0.3.9

Compare Source

This release updates the minimum supported Rust version (MSRV) to 1.49.0, and
updates the (optional) dependency on parking_lot to v0.12.

Changed
  • Updated minimum supported Rust version (MSRV) to 1.49.0 (#​1913)
  • parking_lot: updated to v0.12 (008339d)
Added

v0.3.8: tracing-subscriber 0.3.8

Compare Source

This release adds experimental support for recording structured field
values using the [valuable][valuable] crate to the format::Json formatter. In
particular, user-defined types which are recorded using their
[valuable::Valuable][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][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!

v0.3.7: tracing-subscriber 0.3.7

Compare Source

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!

v0.3.6: tracing-subscriber 0.3.6

Compare Source

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!

v0.3.5: tracing-subscriber 0.3.5

Compare Source

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!

v0.3.4: tracing-subscriber 0.3.4

Compare Source

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!

v0.3.3: tracing-subscriber 0.3.3

Compare Source

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)

v0.3.2: tracing-subscriber 0.3.2

Compare Source

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)

v0.3.1

Compare Source

v0.3.0: tracing-subscriber v0.3.0

Compare Source

This is a breaking release of tracing-subscriber. The primary breaking
change in this release is the removal of the dependency on the [chrono
crate][chrono
crate], due to RUSTSEC-2020-0159. To replace chrono, support is
added for formatting timestamps using the [time crate][time crate] instead.

In addition, this release includes a number of other breaking API
changes, such as adding (limited) support for #![no_std] targets,
removing previously deprecated APIs, and more.

Breaking Changes
  • Removed APIs deprecated in the v0.2.x release series.
  • Renamed Layer::new_span to Layer::on_new_span (#​1674)
  • Removed Layer impl for Arc<L: Layer<S>> and Arc<dyn Layer<S> + ...>
    (#​1649)
  • Replaced the [chrono crate][chrono crate] with the [time crate][time crate] for timestamp
    formatting, to resolve RUSTSEC-2020-0159 (#​1646)
  • Removed json and env-filter from default features. They must now
    be enabled explicitly (#​1647). This means that RUST_LOG-based filters will not
    work unless the env-filter feature is enabled.
  • Changed FormatEvent::format_event and FormatFields::format_fields
    trait methods to take a Writer type, rather than a &mut dyn fmt::Write trait object (#​1661)
  • Changed the signature of the MakeWriter trait by adding a lifetime
    parameter (#​781)
Changed
  • layer: Renamed Layer::new_span to Layer::on_new_span (#​1674)
  • fmt: Changed FormatEvent::format_event and
    FormatFields::format_fields trait methods to take a Writer type,
    rather than a &mut dyn fmt::Write trait object (#​1661)
  • json, env-filter: json and env-filter feature flags are no
    longer enabled by default (#​1647)
Removed
  • Removed deprecated CurrentSpan type (#​1320)
  • registry: Removed deprecated SpanRef::parents iterator, replaced
    by SpanRef::scope in [#​1431] ([#​1648)])
  • layer: Removed deprecated Context::scope iterator, replaced by
    Context::span_scope and Context::event_scope in #​1431 and
    #​1434 (#​1648)
  • layer: Removed Layer impl for Arc<L: Layer<S>> and Arc<dyn Layer<S> + ...>. These interfere with per-layer filtering. (#​1649)
  • fmt: Removed deprecated LayerBuilder type (#​1673)
  • fmt: Removed fmt::Layer::on_event (renamed to
    fmt::Layer::fmt_event) (#​1673)
  • fmt, chrono: Removed the chrono feature flag and APIs for
    using the [chrono crate][chrono crate] for timestamp formatting (#​1646)
Added
  • fmt, time: LocalTime and UtcTime types for formatting
    timestamps using the [time crate][time crate] (#​1646)
  • fmt: Added a lifetime parameter to the MakeWriter trait,
    allowing it to return a borrowed writer. This enables implementations
    of MakeWriter for types such as Mutex<T: io::Write> and
    std::fs::File. (#​781)
  • env-filter: Documentation improvements (#​1637)
  • Support for some APIs on #![no_std] targets, by disabling the std
    feature flag (#​1660)

Thanks to @​Folyd and @​nmathewson for contributing to this release!


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [tracing-subscriber](https://tokio.rs) ([source](https://github.com/tokio-rs/tracing)) | dependencies | minor | `0.2` -> `0.3` | --- ### Release Notes <details> <summary>tokio-rs/tracing (tracing-subscriber)</summary> ### [`v0.3.19`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.19): tracing-subscriber 0.3.19 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.18...tracing-subscriber-0.3.19) \[ [crates.io][crate-0.3.19] ] | \[ [docs.rs][docs-0.3.19] ] This release updates the `tracing` dependency to [v0.1.41][tracing-0.1.41] and the `tracing-serde` dependency to [v0.2.0][tracing-serde-0.2.0]. ##### Added - Add `set_span_events` to `fmt::Subscriber` ([#&#8203;2962]) - **tracing**: Allow `&[u8]` to be recorded as event/span field ([#&#8203;2954]) ##### Changed - Set `log` max level when reloading ([#&#8203;1270]) - Bump MSRV to 1.63 ([#&#8203;2793]) - Use const `thread_local`s when possible ([#&#8203;2838]) - Don't gate `with_ansi()` on the "ansi" feature ([#&#8203;3020]) - Updated tracing-serde to 0.2.0 ([#&#8203;3160]) [#&#8203;1270]: https://github.com/tokio-rs/tracing/pull/1270 [#&#8203;2793]: https://github.com/tokio-rs/tracing/pull/2793 [#&#8203;2838]: https://github.com/tokio-rs/tracing/pull/2838 [#&#8203;2954]: https://github.com/tokio-rs/tracing/pull/2954 [#&#8203;2962]: https://github.com/tokio-rs/tracing/pull/2962 [#&#8203;3020]: https://github.com/tokio-rs/tracing/pull/3020 [#&#8203;3160]: https://github.com/tokio-rs/tracing/pull/3160 [tracing-0.1.41]: https://github.com/tokio-rs/tracing/releases/tag/tracing-0.1.41 [tracing-serde-0.2.0]: https://github.com/tokio-rs/tracing/releases/tag/tracing-serde-0.2.0 [docs-0.3.19]: https://docs.rs/tracing-subscriber/0.3.19/tracing_subscriber/ [crate-0.3.19]: https://crates.io/crates/tracing-subscriber/0.3.19 ### [`v0.3.18`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.18): tracing-subscriber 0.3.18 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.17...tracing-subscriber-0.3.18) This release of `tracing-subscriber` adds support for the [`NO_COLOR`][NO_COLOR] environment variable (an informal standard to disable emitting ANSI color escape codes) in `fmt::Layer`, reintroduces support for the [`chrono`][chrono] crate, and increases the minimum supported Rust version (MSRV) to Rust 1.63.0. It also introduces several minor API improvements. ##### Added - **chrono**: Add [`chrono`][chrono] implementations of `FormatTime` ([#&#8203;2690]) - **subscriber**: Add support for the [`NO_COLOR`][NO_COLOR] environment variable in `fmt::Layer` ([#&#8203;2647]) - **fmt**: make `format::Writer::new()` public ([#&#8203;2680]) - **filter**: Implement `layer::Filter` for `Option<Filter>` ([#&#8203;2407]) ##### Changed - **log**: bump version of `tracing-log` to 0.2 ([#&#8203;2772]) - Increased minimum supported Rust version (MSRV) to 1.63.0+. [`chrono`]: https://github.com/chronotope/chrono [`NO_COLOR`]: https://no-color.org/ [#&#8203;2690]: https://github.com/tokio-rs/tracing/pull/2690 [#&#8203;2647]: https://github.com/tokio-rs/tracing/pull/2647 [#&#8203;2680]: https://github.com/tokio-rs/tracing/pull/2680 [#&#8203;2407]: https://github.com/tokio-rs/tracing/pull/2407 [#&#8203;2772]: https://github.com/tokio-rs/tracing/pull/2772 Thanks to [@&#8203;shayne-fletcher](https://github.com/shayne-fletcher), [@&#8203;dmlary](https://github.com/dmlary), [@&#8203;kaifastromai](https://github.com/kaifastromai), and [@&#8203;jsgf](https://github.com/jsgf) for contributing! ### [`v0.3.17`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.17): tracing-subscriber 0.3.17 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.16...tracing-subscriber-0.3.17) This release of `tracing-subscriber` fixes a build error when using `env-filter` with recent versions of the `regex` crate. It also introduces several minor API improvements. ##### Fixed - **env-filter**: Add "unicode-case" and "unicode-perl" to the `regex` dependency, fixing a build error with recent versions of `regex` ([#&#8203;2566]) - A number of minor documentation typos and other fixes ([#&#8203;2384], [#&#8203;2378], [#&#8203;2368], [#&#8203;2548]) ##### Added - **filter**: Add `fmt::Display` impl for `filter::Targets` ([#&#8203;2343]) - **fmt**: Made `with_ansi(false)` no longer require the "ansi" feature, so that ANSI formatting escapes can be disabled without requiring ANSI-specific dependencies ([#&#8203;2532]) ##### Changed - **fmt**: Dim targets in the `Compact` formatter, matching the default formatter ([#&#8203;2409]) Thanks to [@&#8203;keepsimple1](https://github.com/keepsimple1), [@&#8203;andrewhalle](https://github.com/andrewhalle), [@&#8203;LeoniePhiline](https://github.com/LeoniePhiline), [@&#8203;LukeMathWalker](https://github.com/LukeMathWalker), [@&#8203;howardjohn](https://github.com/howardjohn), [@&#8203;daxpedda](https://github.com/daxpedda), and [@&#8203;dbidwell94](https://github.com/dbidwell94) for contributing to this release! [#&#8203;2566]: https://github.com/tokio-rs/tracing/pull/2566 [#&#8203;2384]: https://github.com/tokio-rs/tracing/pull/2384 [#&#8203;2378]: https://github.com/tokio-rs/tracing/pull/2378 [#&#8203;2368]: https://github.com/tokio-rs/tracing/pull/2368 [#&#8203;2548]: https://github.com/tokio-rs/tracing/pull/2548 [#&#8203;2343]: https://github.com/tokio-rs/tracing/pull/2343 [#&#8203;2532]: https://github.com/tokio-rs/tracing/pull/2532 [#&#8203;2409]: https://github.com/tokio-rs/tracing/pull/2409 ### [`v0.3.16`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.16): tracing-subscriber 0.3.16 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.15...tracing-subscriber-0.3.16) This release of `tracing-subscriber` fixes a regression introduced in [v0.3.15][subscriber-0.3.15] where `Option::None`'s `Layer` implementation would set the max level hint to `OFF`. In addition, it adds several new APIs, including the `Filter::event_enabled` method for filtering events based on fields values, and the ability to log internal errors that occur when writing a log line. This release also replaces the dependency on the unmaintained \[`ansi-term`] crate with the \[`nu-ansi-term`] crate, resolving an *informational* security advisory ([RUSTSEC-2021-0139]) for \[`ansi-term`]'s maintainance status. This increases the minimum supported Rust version (MSRV) to Rust 1.50+, although the crate should still compile for the previous MSRV of Rust 1.49+ when the `ansi` feature is not enabled. ##### Fixed - **layer**: `Option::None`'s `Layer` impl always setting the `max_level_hint` to `LevelFilter::OFF` ([#&#8203;2321]) - Compilation with `-Z minimal versions` ([#&#8203;2246]) - **env-filter**: Clarify that disabled level warnings are emitted by `tracing-subscriber` ([#&#8203;2285]) ##### Added - **fmt**: Log internal errors to `stderr` if writing a log line fails ([#&#8203;2102]) - **fmt**: `FmtLayer::log_internal_errors` and `FmtSubscriber::log_internal_errors` methods for configuring whether internal writer errors are printed to `stderr` ([#&#8203;2102]) - **fmt**: `#[must_use]` attributes on builders to warn if a `Subscriber` is configured but not set as the default subscriber ([#&#8203;2239]) - **filter**: `Filter::event_enabled` method for filtering an event based on its fields ([#&#8203;2245], [#&#8203;2251]) - **filter**: `Targets::default_level` accessor (\[[#&#8203;2242](https://github.com/tokio-rs/tracing/issues/2242)]) ##### Changed - **ansi**: Replaced dependency on unmaintained `ansi-term` crate with `nu-ansi-term` (([#&#8203;2287], fixes informational advisory [RUSTSEC-2021-0139]) - `tracing-core`: updated to [0.1.30][core-0.1.30] - Minimum Supported Rust Version (MSRV) increased to Rust 1.50+ (when the `ansi`) feature flag is enabled ([#&#8203;2287]) ##### Documented - **fmt**: Correct inaccuracies in `fmt::init` documentation ([#&#8203;2224]) - **filter**: Fix incorrect doc link in `filter::Not` combinator ([#&#8203;2249]) Thanks to new contributors [@&#8203;cgbur](https://github.com/cgbur), [@&#8203;DesmondWillowbrook](https://github.com/DesmondWillowbrook), [@&#8203;RalfJung](https://github.com/RalfJung), and [@&#8203;poliorcetics](https://github.com/poliorcetics), as well as returning contributors [@&#8203;CAD97](https://github.com/CAD97), [@&#8203;connec](https://github.com/connec), [@&#8203;jswrenn](https://github.com/jswrenn), [@&#8203;guswynn](https://github.com/guswynn), and [@&#8203;bryangarza](https://github.com/bryangarza), for contributing to this release! [nu-ansi-term]: https://github.com/nushell/nu-ansi-term [ansi_term]: https://github.com/ogham/rust-ansi-term [RUSTSEC-2021-0139]: https://rustsec.org/advisories/RUSTSEC-2021-0139.html [core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30 [subscriber-0.3.15]: https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.15 [#&#8203;2321]: https://github.com/tokio-rs/tracing/pull/2321 [#&#8203;2246]: https://github.com/tokio-rs/tracing/pull/2246 [#&#8203;2285]: https://github.com/tokio-rs/tracing/pull/2285 [#&#8203;2102]: https://github.com/tokio-rs/tracing/pull/2102 [#&#8203;2239]: https://github.com/tokio-rs/tracing/pull/2239 [#&#8203;2245]: https://github.com/tokio-rs/tracing/pull/2245 [#&#8203;2251]: https://github.com/tokio-rs/tracing/pull/2251 [#&#8203;2287]: https://github.com/tokio-rs/tracing/pull/2287 [#&#8203;2224]: https://github.com/tokio-rs/tracing/pull/2224 [#&#8203;2249]: https://github.com/tokio-rs/tracing/pull/2249 ### [`v0.3.15`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.15): tracing-subscriber 0.3.15 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.14...tracing-subscriber-0.3.15) This release fixes a bug where the `reload` layer would fail to pass through `max_level_hint` to the underlying layer, potentially breaking filtering. ##### Fixed - **reload**: pass through `max_level_hint` to the inner `Layer` ([#&#8203;2204]) Thanks to [@&#8203;guswynn](https://github.com/guswynn) for contributing to this release! [#&#8203;2204]: https://github.com/tokio-rs/tracing/pull/2204 ### [`v0.3.14`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.14): tracing-subscriber 0.3.14 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.13...tracing-subscriber-0.3.14) This release fixes multiple filtering bugs in the `Layer` implementations for `Option<impl Layer>` and `Vec<impl Layer>`. ##### Fixed - **layer**: `Layer::event_enabled` implementation for `Option<impl Layer<S>>` returning `false` when the `Option` is `None`, disabling all events globally ([#&#8203;2193]) - **layer**: `Layer::max_level_hint` implementation for `Option<impl Layer<S>>` incorrectly disabling max level filtering when the option is `None` ([#&#8203;2195]) - **layer**: `Layer::max_level_hint` implementation for `Vec<impl Layer<S>>` returning `LevelFilter::ERROR` rather than `LevelFilter::OFF` when the `Vec` is empty ([#&#8203;2195]) Thanks to [@&#8203;CAD97](https://github.com/CAD97) and [@&#8203;guswynn](https://github.com/guswynn) for contributing to this release! [#&#8203;2193]: https://github.com/tokio-rs/tracing/pull/2193 [#&#8203;2195]: https://github.com/tokio-rs/tracing/pull/2195 ### [`v0.3.13`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.13): tracing-subscriber 0.3.13 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.12...tracing-subscriber-0.3.13) This release of `tracing-subscriber` fixes a compilation failure due to an incorrect `tracing-core` dependency that was introduced in v0.3.12. ##### Changed - **tracing_core**: Updated minimum dependency version to 0.1.28 ([#&#8203;2190]) [#&#8203;2190]: https://github.com/tokio-rs/tracing/pull/2190 ### [`v0.3.12`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.12): tracing-subscriber 0.3.12 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.11...tracing-subscriber-0.3.12) This release of `tracing-subscriber` adds a new `Layer::event_enabled` method, which allows `Layer`s to filter events *after* their field values are recorded; a `Filter` implementation for `reload::Layer`, to make using `reload` with per-layer filtering more ergonomic, and additional inherent method downcasting APIs for the `Layered` type. In addition, it includes dependency updates, and minor fixes for documentation and feature flagging. ##### Added - **layer**: `Layer::event_enabled` method, which can be implemented to filter events based on their field values ([#&#8203;2008]) - **reload**: `Filter` implementation for `reload::Layer` ([#&#8203;2159]) - **layer**: `Layered::downcast_ref` and `Layered::is` inherent methods ([#&#8203;2160]) ##### Changed - **parking_lot**: Updated dependency on `parking_lot` to 0.13.0 ([#&#8203;2143]) - Replaced `lazy_static` dependency with `once_cell` (\[[#&#8203;2147](https://github.com/tokio-rs/tracing/issues/2147)]) ##### Fixed - Don't enable `tracing-core` features by default ([#&#8203;2107]) - Several documentation link and typo fixes ([#&#8203;2064], [#&#8203;2068], #\[2077], [#&#8203;2161], [#&#8203;1088]) Thanks to [@&#8203;ben0x539](https://github.com/ben0x539), [@&#8203;jamesmunns](https://github.com/jamesmunns), [@&#8203;georgemp](https://github.com/georgemp), [@&#8203;james7132](https://github.com/james7132), [@&#8203;jswrenn](https://github.com/jswrenn), [@&#8203;CAD97](https://github.com/CAD97), and [@&#8203;guswynn](https://github.com/guswynn) for contributing to this release! [#&#8203;2008]: https://github.com/tokio-rs/tracing/pull/2008 [#&#8203;2159]: https://github.com/tokio-rs/tracing/pull/2159 [#&#8203;2160]: https://github.com/tokio-rs/tracing/pull/2160 [#&#8203;2143]: https://github.com/tokio-rs/tracing/pull/2143 [#&#8203;2107]: https://github.com/tokio-rs/tracing/pull/2107 [#&#8203;2064]: https://github.com/tokio-rs/tracing/pull/2064 [#&#8203;2068]: https://github.com/tokio-rs/tracing/pull/2068 [#&#8203;2077]: https://github.com/tokio-rs/tracing/pull/2077 [#&#8203;2161]: https://github.com/tokio-rs/tracing/pull/2161 [#&#8203;1088]: https://github.com/tokio-rs/tracing/pull/1088 ### [`v0.3.11`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.11): tracing-subscriber 0.3.11 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.10...tracing-subscriber-0.3.11) This is a bugfix release for the `Filter` implementation for `EnvFilter` added in [v0.3.10]. ##### Fixed - **env-filter**: Added missing `Filter::on_record` callback to `EnvFilter`'s `Filter` impl ([#&#8203;2058]) - **env-filter**: Fixed method resolution issues when calling `EnvFilter` methods with both the `Filter` and `Layer` traits in scope ([#&#8203;2057]) - **env-filter**: Fixed `EnvFilter::builder().parse()` and other parsing methods returning an error when parsing an empty string ([#&#8203;2052]) Thanks to new contributor [@&#8203;Ma124](https://github.com/Ma124) for contributing to this release! [v0.3.10]: https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.10 [#&#8203;2058]: https://github.com/tokio-rs/tracing/pull/2058 [#&#8203;2057]: https://github.com/tokio-rs/tracing/pull/2057 [#&#8203;2052]: https://github.com/tokio-rs/tracing/pull/2052 ### [`v0.3.10`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.10): tracing-subscriber 0.3.10 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.9...tracing-subscriber-0.3.10) This release adds several new features, including a `Filter` implementation and new builder API for `EnvFilter`, support for using a `Vec<L> where L: Layer` as a `Layer`, and a number of smaller API improvements to make working with dynamic and reloadable layers easier. ##### Added - **registry**: Implement `Filter` for `EnvFilter`, allowing it to be used with per-layer filtering ([#&#8203;1983]) - **registry**: `Filter::on_new_span`, `Filter::on_enter`, `Filter::on_exit`, `Filter::on_close` and `Filter::on_record` callbacks to allow `Filter`s to track span states internally ([#&#8203;1973], [#&#8203;2017], [#&#8203;2031]) - **registry**: `Filtered::filter` and `Filtered::filter_mut` accessors ([#&#8203;1959]) - **registry**: `Filtered::inner` and `Filtered::inner_mut` accessors to borrow the wrapped `Layer` ([#&#8203;2034]) - **layer**: Implement `Layer` for `Vec<L: Layer>`, to allow composing together a dynamically sized list of `Layer`s ([#&#8203;2027]) - **layer**: `Layer::boxed` method to make type-erasing `Layer`s easier ([#&#8203;2026]) - **fmt**: `fmt::Layer::writer` and `fmt::Layer::writer_mut` accessors ([#&#8203;2034]) - **fmt**: `fmt::Layer::set_ansi` method to allow changing the ANSI formatting configuration at runtime ([#&#8203;2034]) - **env-filter**: `EnvFilter::builder` to configure a new `EnvFilter` prior to parsing it ([#&#8203;2035]) - Several documentation fixes and improvements ([#&#8203;1972], [#&#8203;1971], [#&#8203;2023], [#&#8203;2023]) ##### Fixed - **fmt**: `fmt::Layer`'s auto traits no longer depend on the `Subscriber` type parameter's auto traits ([#&#8203;2025]) - **env-filter**: Fixed missing help text when the `ansi` feature is disabled ([#&#8203;2029]) Thanks to new contributors [@&#8203;TimoFreiberg](https://github.com/TimoFreiberg) and [@&#8203;wagenet](https://github.com/wagenet), as well as [@&#8203;CAD97](https://github.com/CAD97) for contributing to this release! [#&#8203;1983]: https://github.com/tokio-rs/tracing/pull/1983 [#&#8203;1973]: https://github.com/tokio-rs/tracing/pull/1973 [#&#8203;2017]: https://github.com/tokio-rs/tracing/pull/2017 [#&#8203;2031]: https://github.com/tokio-rs/tracing/pull/2031 [#&#8203;1959]: https://github.com/tokio-rs/tracing/pull/1959 [#&#8203;2034]: https://github.com/tokio-rs/tracing/pull/2034 [#&#8203;2027]: https://github.com/tokio-rs/tracing/pull/2027 [#&#8203;2026]: https://github.com/tokio-rs/tracing/pull/2026 [#&#8203;2035]: https://github.com/tokio-rs/tracing/pull/2035 [#&#8203;1972]: https://github.com/tokio-rs/tracing/pull/1972 [#&#8203;1971]: https://github.com/tokio-rs/tracing/pull/1971 [#&#8203;2023]: https://github.com/tokio-rs/tracing/pull/2023 [#&#8203;2025]: https://github.com/tokio-rs/tracing/pull/2025 [#&#8203;2029]: https://github.com/tokio-rs/tracing/pull/2029 ### [`v0.3.9`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.9): tracing-subscriber 0.3.9 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.8...tracing-subscriber-0.3.9) This release updates the minimum supported Rust version (MSRV) to 1.49.0, and updates the (optional) dependency on `parking_lot` to v0.12. ##### Changed - Updated minimum supported Rust version (MSRV) to 1.49.0 ([#&#8203;1913]) - `parking_lot`: updated to v0.12 ([008339d]) ##### Added - **fmt**: Documentation improvements ([#&#8203;1926], [#&#8203;1927]) [#&#8203;1913]: https://github.com/tokio-rs/tracing/pull/1913 [#&#8203;1926]: https://github.com/tokio-rs/tracing/pull/1926 [#&#8203;1927]: https://github.com/tokio-rs/tracing/pull/1927 [008339d]: https://github.com/tokio-rs/tracing/commit/008339d1e8750ffe7b4634fc7789bda0c522424f ### [`v0.3.8`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.8): tracing-subscriber 0.3.8 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.7...tracing-subscriber-0.3.8) This release adds *experimental* support for recording structured field values using the [`valuable`][valuable] crate to the `format::Json` formatter. In particular, user-defined types which are recorded using their [`valuable::Valuable`][valuable::Valuable] implementations will be serialized as JSON objects, rather than using their `fmt::Debug` representation. See [this blog post][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`][valuable] values as structured JSON ([#&#8203;1862], [#&#8203;1901]) - **filter**: `Targets::would_enable` method for testing if a `Targets` filter would enable a given target ([#&#8203;1903]) - **fmt**: `map_event_format`, `map_fmt_fields`, and `map_writer` methods to `fmt::Layer` and `fmt::SubscriberBuilder` ([#&#8203;1871]) ##### Changed - `tracing-core`: updated to [0.1.22][core-0.1.22] ##### Fixed - Set `smallvec` minimal version to 1.2.0, to fix compilation errors with `-Z minimal-versions` ([#&#8203;1890]) - Minor documentation fixes ([#&#8203;1902], [#&#8203;1893]) Thanks to [@&#8203;guswynn](https://github.com/guswynn), [@&#8203;glts](https://github.com/glts), and [@&#8203;lilyball](https://github.com/lilyball) for contributing to this release! [`valuable`]: https://crates.io/crates/valuable [`valuable::Valuable`]: https://docs.rs/valuable/latest/valuable/trait.Valuable.html [post]: https://tokio.rs/blog/2021-05-valuable [core-0.1.22]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.22 [#&#8203;1862]: https://github.com/tokio-rs/tracing/pull/1862 [#&#8203;1901]: https://github.com/tokio-rs/tracing/pull/1901 [#&#8203;1903]: https://github.com/tokio-rs/tracing/pull/1903 [#&#8203;1871]: https://github.com/tokio-rs/tracing/pull/1871 [#&#8203;1890]: https://github.com/tokio-rs/tracing/pull/1890 [#&#8203;1902]: https://github.com/tokio-rs/tracing/pull/1902 [#&#8203;1893]: https://github.com/tokio-rs/tracing/pull/1893 ### [`v0.3.7`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.7): tracing-subscriber 0.3.7 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.6...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 ([#&#8203;1578]) ##### Fixed - **registry**: Updated `thread-local` to v1.1.4 ([#&#8203;1858]) Thanks to new contributor [@&#8203;matze](https://github.com/matze) for contributing to this release! [RUSTSEC-2022-0006]: https://rustsec.org/advisories/RUSTSEC-2022-0006 [#&#8203;1578]: https://github.com/tokio-rs/tracing/pull/1578 [#&#8203;1858]: https://github.com/tokio-rs/tracing/pull/1858 ### [`v0.3.6`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.6): tracing-subscriber 0.3.6 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.5...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` and `with_line_number` configuration methods to `fmt::Format`, `fmt::SubscriberBuilder`, and `fmt::Layer` ([#&#8203;1773]) ##### Fixed - **fmt**: Removed incorrect leading comma from span fields with the `Pretty` formatter ([#&#8203;1833]) ##### Deprecated - **fmt**: Deprecated `Pretty::with_source_location`, as it can now be replaced by the more general `Format`, `SubscriberBuilder`, and `Layer` methods ([#&#8203;1773]) Thanks to new contributor [@&#8203;renecouto](https://github.com/renecouto) for contributing to this release! [#&#8203;1773]: https://github.com/tokio-rs/tracing/pull/1773 [#&#8203;1833]: https://github.com/tokio-rs/tracing/pull/1833 ### [`v0.3.5`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.5): tracing-subscriber 0.3.5 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.4...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 to `fmt::time` for formatting local timestamps with a fixed offset ([#&#8203;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 ([#&#8203;1781]) Thanks to [@&#8203;marienz](https://github.com/marienz) and [@&#8203;ishitatsuyuki](https://github.com/ishitatsuyuki) for contributing to this release! [#&#8203;1772]: https://github.com/tokio-rs/tracing/pull/1772 [#&#8203;1781]: https://github.com/tokio-rs/tracing/pull/1781 ### [`v0.3.4`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.4): tracing-subscriber 0.3.4 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.3...tracing-subscriber-0.3.4) 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 ([#&#8203;1689]) - **fmt**: Fixed double space before thread IDs with `Pretty` formatter ([#&#8203;1778]) - Several documentation improvements ([#&#8203;1608], [#&#8203;1699], [#&#8203;1701]) [#&#8203;1689]: https://github.com/tokio-rs/tracing/pull/1689 [#&#8203;1778]: https://github.com/tokio-rs/tracing/pull/1778 [#&#8203;1608]: https://github.com/tokio-rs/tracing/pull/1608 [#&#8203;1699]: https://github.com/tokio-rs/tracing/pull/1699 [#&#8203;1701]: https://github.com/tokio-rs/tracing/pull/1701 Thanks to new contributors [@&#8203;Swatinem](https://github.com/Swatinem) and [@&#8203;rukai](https://github.com/rukai) for contributing to this release! ### [`v0.3.3`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.3): tracing-subscriber 0.3.3 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.2...tracing-subscriber-0.3.3) This release fixes a pair of regressions in `tracing-subscriber`'s `fmt` module. ##### Fixed - **fmt**: Fixed missing event fields with `Compact` formatter ([#&#8203;1755](https://github.com/tokio-rs/tracing/issues/1755)) - **fmt**: Fixed `PrettyFields` formatter (and thus `format::Pretty` event formatter) ignoring the `fmt::Layer`'s ANSI color code configuration ([#&#8203;1747](https://github.com/tokio-rs/tracing/issues/1747)) ### [`v0.3.2`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.2): tracing-subscriber 0.3.2 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.1...tracing-subscriber-0.3.2) ##### Fixed - **fmt**: Fixed `MakeWriter` filtering not working with `BoxMakeWriter` ([#&#8203;1694](https://github.com/tokio-rs/tracing/issues/1694)) ##### Added - **fmt**: `Writer::has_ansi_escapes` method to check if an output supports ANSI terminal formatting escape codes ([#&#8203;1696](https://github.com/tokio-rs/tracing/issues/1696)) - **fmt**: Added additional ANSI terminal formatting to field formatters when supported ([#&#8203;1702](https://github.com/tokio-rs/tracing/issues/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 ([#&#8203;1728](https://github.com/tokio-rs/tracing/issues/1728)) - **fmt**: Improved documentation on implementing event formatters ([#&#8203;1727](https://github.com/tokio-rs/tracing/issues/1727)) ### [`v0.3.1`](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.0...tracing-subscriber-0.3.1) [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.3.0...tracing-subscriber-0.3.1) ### [`v0.3.0`](https://github.com/tokio-rs/tracing/releases/tag/tracing-subscriber-0.3.0): tracing-subscriber v0.3.0 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-subscriber-0.2.25...tracing-subscriber-0.3.0) This is a breaking release of `tracing-subscriber`. The primary breaking change in this release is the removal of the dependency on the [`chrono` crate][chrono crate], due to [RUSTSEC-2020-0159]. To replace `chrono`, support is added for formatting timestamps using the [`time` crate][time crate] instead. In addition, this release includes a number of other breaking API changes, such as adding (limited) support for `#![no_std]` targets, removing previously deprecated APIs, and more. ##### Breaking Changes - Removed APIs deprecated in the v0.2.x release series. - Renamed `Layer::new_span` to `Layer::on_new_span` ([#&#8203;1674](https://github.com/tokio-rs/tracing/issues/1674)) - Removed `Layer` impl for `Arc<L: Layer<S>>` and `Arc<dyn Layer<S> + ...>` ([#&#8203;1649](https://github.com/tokio-rs/tracing/issues/1649)) - Replaced the [`chrono` crate][chrono crate] with the [`time` crate][time crate] for timestamp formatting, to resolve [RUSTSEC-2020-0159] ([#&#8203;1646](https://github.com/tokio-rs/tracing/issues/1646)) - Removed `json` and `env-filter` from default features. They must now be enabled explicitly ([#&#8203;1647](https://github.com/tokio-rs/tracing/issues/1647)). This means that `RUST_LOG`-based filters *will not* work unless the `env-filter` feature is enabled. - Changed `FormatEvent::format_event` and `FormatFields::format_fields` trait methods to take a `Writer` type, rather than a `&mut dyn fmt::Write` trait object ([#&#8203;1661](https://github.com/tokio-rs/tracing/issues/1661)) - Changed the signature of the `MakeWriter` trait by adding a lifetime parameter ([#&#8203;781](https://github.com/tokio-rs/tracing/issues/781)) ##### Changed - **layer**: Renamed `Layer::new_span` to `Layer::on_new_span` ([#&#8203;1674](https://github.com/tokio-rs/tracing/issues/1674)) - **fmt**: Changed `FormatEvent::format_event` and `FormatFields::format_fields` trait methods to take a `Writer` type, rather than a `&mut dyn fmt::Write` trait object ([#&#8203;1661](https://github.com/tokio-rs/tracing/issues/1661)) - **json**, **env-filter**: `json` and `env-filter` feature flags are no longer enabled by default ([#&#8203;1647](https://github.com/tokio-rs/tracing/issues/1647)) ##### Removed - Removed deprecated `CurrentSpan` type ([#&#8203;1320](https://github.com/tokio-rs/tracing/issues/1320)) - **registry**: Removed deprecated `SpanRef::parents` iterator, replaced by `SpanRef::scope` in \[[#&#8203;1431](https://github.com/tokio-rs/tracing/issues/1431)] (\[[#&#8203;1648](https://github.com/tokio-rs/tracing/issues/1648))]) - **layer**: Removed deprecated `Context::scope` iterator, replaced by `Context::span_scope` and `Context::event_scope` in [#&#8203;1431](https://github.com/tokio-rs/tracing/issues/1431) and [#&#8203;1434](https://github.com/tokio-rs/tracing/issues/1434) ([#&#8203;1648](https://github.com/tokio-rs/tracing/issues/1648)) - **layer**: Removed `Layer` impl for `Arc<L: Layer<S>>` and `Arc<dyn Layer<S> + ...>`. These interfere with per-layer filtering. ([#&#8203;1649](https://github.com/tokio-rs/tracing/issues/1649)) - **fmt**: Removed deprecated `LayerBuilder` type ([#&#8203;1673](https://github.com/tokio-rs/tracing/issues/1673)) - **fmt**: Removed `fmt::Layer::on_event` (renamed to `fmt::Layer::fmt_event`) ([#&#8203;1673](https://github.com/tokio-rs/tracing/issues/1673)) - **fmt**, **chrono**: Removed the `chrono` feature flag and APIs for using the [`chrono` crate][chrono crate] for timestamp formatting ([#&#8203;1646](https://github.com/tokio-rs/tracing/issues/1646)) ##### Added - **fmt**, **time**: `LocalTime` and `UtcTime` types for formatting timestamps using the [`time` crate][time crate] ([#&#8203;1646](https://github.com/tokio-rs/tracing/issues/1646)) - **fmt**: Added a lifetime parameter to the `MakeWriter` trait, allowing it to return a borrowed writer. This enables implementations of `MakeWriter` for types such as `Mutex<T: io::Write>` and `std::fs::File`. ([#&#8203;781](https://github.com/tokio-rs/tracing/issues/781)) - **env-filter**: Documentation improvements ([#&#8203;1637](https://github.com/tokio-rs/tracing/issues/1637)) - Support for some APIs on `#![no_std]` targets, by disabling the `std` feature flag ([#&#8203;1660](https://github.com/tokio-rs/tracing/issues/1660)) Thanks to [@&#8203;Folyd](https://github.com/Folyd) and [@&#8203;nmathewson](https://github.com/nmathewson) for contributing to this release! [`chrono` crate]: https://crates.io/crates/chrono [`time` crate]: https://crates.io/crates/time [RUSTSEC-2020-0159]: https://rustsec.org/advisories/RUSTSEC-2020-0159.html </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNzMuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE3My4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
renovate-bot added 1 commit 2025-03-04 13:19:29 +01:00
Update Rust crate tracing-subscriber to 0.3
Some checks failed
renovate/artifacts Artifact file update failure
tests / fmt (push) Successful in 51s
tests / build (push) Successful in 1m12s
tests / test (push) Failing after 1m21s
tests / clippy (push) Successful in 1m2s
tests / pre-commit (push) Failing after 1m9s
7cb7a41309
renovate-bot force-pushed renovate/tokio-tracing-monorepo from 7cb7a41309 to 08b62fe78b 2025-03-04 22:37:54 +01:00 Compare
renovate-bot force-pushed renovate/tokio-tracing-monorepo from 08b62fe78b to 8df21f1237 2025-03-05 01:03:57 +01:00 Compare
renovate-bot force-pushed renovate/tokio-tracing-monorepo from 8df21f1237 to cf00b4ddb8 2025-03-05 02:08:16 +01:00 Compare
renovate-bot force-pushed renovate/tokio-tracing-monorepo from cf00b4ddb8 to a9d643586b 2025-03-05 02:08:30 +01:00 Compare
renovate-bot force-pushed renovate/tokio-tracing-monorepo from a9d643586b to 84f436c371 2025-03-05 02:27:05 +01:00 Compare
renovate-bot force-pushed renovate/tokio-tracing-monorepo from 84f436c371 to 9efc372f8f 2025-03-05 03:31:26 +01:00 Compare
jheuel merged commit 65c09c5e85 into main 2025-03-05 03:37:41 +01:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: jheuel/ohrwurm#23