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 (#2321)
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)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
⚠️ Dependabot is rebasing this PR ⚠️
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Bumps tracing-subscriber from 0.3.15 to 0.3.16.
Release notes
Sourced from tracing-subscriber's releases.
... (truncated)
Commits
b28c935
subscriber: prepare to release v0.3.16 (#2342)ecd7e06
chore(ci): remove requirement for removed joba42e963
subscriber: replace unmaintainedansi_term
withnu-ansi-term
(#2287)a4fc92c
subscriber: revert "implLookupSpan
forBox\<LS>
andArc\<LS>
(#2247)"8e35927
tracing: prepare to release v0.1.37 (#2341)64b221d
attributes: prepare to release v0.1.23 (#2340)92cb2f0
attributes: fix handling of inner attributes (#2307)8b01ea9
core: prepare to release v0.1.30 (#2339)d7372d7
tracing: addreqwest-tracing
to related crates in README (#2331)257f86f
opentelemetry: fix metrics docs usingvalue.
instead ofhistogram.
(#2326)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)