tracing-subscriber 0.3.10
·
375 commits
to main
since this release
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
FilterforEnvFilter, allowing it to be used with
per-layer filtering (#1983) - registry:
Filter::on_new_span,Filter::on_enter,
Filter::on_exit,Filter::on_closeandFilter::on_recordcallbacks to
allowFilters to track span states internally (#1973, #2017, #2031) - registry:
Filtered::filterandFiltered::filter_mutaccessors
(#1959) - registry:
Filtered::innerandFiltered::inner_mutaccessors to borrow
the wrappedLayer(#2034) - layer: Implement
LayerforVec<L: Layer>, to allow composing together
a dynamically sized list ofLayers (#2027) - layer:
Layer::boxedmethod to make type-erasingLayers easier
(#2026) - fmt:
fmt::Layer::writerandfmt::Layer::writer_mutaccessors (#2034) - fmt:
fmt::Layer::set_ansimethod to allow changing the ANSI formatting
configuration at runtime (#2034) - env-filter:
EnvFilter::builderto configure a newEnvFilterprior to
parsing it (#2035) - Several documentation fixes and improvements (#1972, #1971, #2023,
#2023)
Fixed
- fmt:
fmt::Layer's auto traits no longer depend on theSubscribertype
parameter's auto traits (#2025) - env-filter: Fixed missing help text when the
ansifeature is disabled
(#2029)
Thanks to new contributors @TimoFreiberg and @wagenet, as well as @CAD97 for
contributing to this release!