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!
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)
... (truncated)
Commits
9638587 subscriber: prepare to release v0.3.14 (#2201)
2659ccf opentelemetry: fix exception fields defaults in docs (#2200)
4a3f299 attributes: ensure res and err events inherit target (#2184)
e0b3f79 subscriber: fix max_level_hint for empty Option/VecLayer impls (#2195)
0012a41 subscriber: \<None as Layer>::event_enabled should be true (#2193)
2fdbaaa subscriber: prepare to release v0.3.13 (#2192)
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)
Bumps tracing-subscriber from 0.3.11 to 0.3.14.
Release notes
Sourced from tracing-subscriber's releases.
... (truncated)
Commits
9638587
subscriber: prepare to release v0.3.14 (#2201)2659ccf
opentelemetry: fix exception fields defaults in docs (#2200)4a3f299
attributes: ensureres
anderr
events inherittarget
(#2184)e0b3f79
subscriber: fixmax_level_hint
for emptyOption
/Vec
Layer
impls (#2195)0012a41
subscriber:\<None as Layer>::event_enabled
should betrue
(#2193)2fdbaaa
subscriber: prepare to release v0.3.13 (#2192)7f62097
subscriber: fix clippy lints (#2191)b4680b1
subscriber: update minimumtracing-core
dep to 0.1.28 (#2190)d86d2a4
subscriber: prepare to release v0.3.12 (#2187)ebea0e4
tracing: reorganize benchmarks for comparability (#2178)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)