fix(deps): update rust crate tracing-subscriber to v0.3.20 #174
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.3.3->0.3.200.2.18->0.3.0Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
tokio-rs/tracing (tracing-subscriber)
v0.3.20: tracing-subscriber 0.3.20Compare Source
Security Fix: ANSI Escape Sequence Injection (CVE-TBD)
Impact
Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:
In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.
Solution
Version 0.3.20 fixes this vulnerability by escaping ANSI control characters in when writing events to destinations that may be printed to the terminal.
Affected Versions
All versions of tracing-subscriber prior to 0.3.20 are affected by this vulnerability.
Recommendations
Immediate Action Required: We recommend upgrading to tracing-subscriber 0.3.20 immediately, especially if your application:
Migration
This is a patch release with no breaking API changes. Simply update your Cargo.toml:
Acknowledgments
We would like to thank zefr0x who responsibly reported the issue at
[email protected].If you believe you have found a security vulnerability in any tokio-rs project, please email us at
[email protected].v0.3.19: tracing-subscriber 0.3.19Compare Source
[ crates.io ] | [ docs.rs ]
This release updates the
tracingdependency to v0.1.41 andthe
tracing-serdedependency to v0.2.0.Added
set_span_eventstofmt::Subscriber(#2962)&[u8]to be recorded as event/span field (#2954)Changed
logmax level when reloading (#1270)thread_locals when possible (#2838)with_ansi()on the "ansi" feature (#3020)v0.3.18: tracing-subscriber 0.3.18Compare Source
This release of
tracing-subscriberadds support for theNO_COLORenvironmentvariable (an informal standard to disable emitting ANSI color escape codes) in
fmt::Layer, reintroduces support for thechronocrate, and increases theminimum supported Rust version (MSRV) to Rust 1.63.0.
It also introduces several minor API improvements.
Added
chronoimplementations ofFormatTime(#2690)NO_COLORenvironment variable infmt::Layer(#2647)format::Writer::new()public (#2680)layer::FilterforOption<Filter>(#2407)Changed
tracing-logto 0.2 (#2772)Thanks to @shayne-fletcher, @dmlary, @kaifastromai, and @jsgf for contributing!
v0.3.17: tracing-subscriber 0.3.17Compare Source
This release of
tracing-subscriberfixes a build error when usingenv-filterwith recent versions of the
regexcrate. It also introduces several minor APIimprovements.
Fixed
regexdependency, fixing a build error with recent versions of
regex(#2566)#2368, #2548)
Added
fmt::Displayimpl forfilter::Targets(#2343)with_ansi(false)no longer require the "ansi" feature, so thatANSI formatting escapes can be disabled without requiring ANSI-specific
dependencies (#2532)
Changed
Compactformatter, matching the defaultformatter (#2409)
Thanks to @keepsimple1, @andrewhalle, @LeoniePhiline, @LukeMathWalker,
@howardjohn, @daxpedda, and @dbidwell94 for contributing to this release!
v0.3.16: tracing-subscriber 0.3.16Compare Source
This release of
tracing-subscriberfixes a regression introduced inv0.3.15 where
Option::None'sLayerimplementation wouldset the max level hint to
OFF. In addition, it adds several new APIs,including the
Filter::event_enabledmethod for filtering events based onfields 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 securityadvisory (RUSTSEC-2021-0139) for [
ansi-term]'s maintainance status. Thisincreases 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
ansifeature is not enabled.
Fixed
Option::None'sLayerimpl always setting themax_level_hintto
LevelFilter::OFF(#2321)-Z minimal versions(#2246)tracing-subscriber(#2285)Added
stderrif writing a log line fails (#2102)FmtLayer::log_internal_errorsandFmtSubscriber::log_internal_errorsmethods for configuring whether internalwriter errors are printed to
stderr(#2102)#[must_use]attributes on builders to warn if aSubscriberisconfigured but not set as the default subscriber (#2239)
Filter::event_enabledmethod for filtering an event based on itsfields (#2245, #2251)
Targets::default_levelaccessor ([#2242])Changed
ansi-termcrate withnu-ansi-term((#2287, fixes informational advisory RUSTSEC-2021-0139)tracing-core: updated to 0.1.30ansi) feature flag is enabled (#2287)Documented
fmt::initdocumentation (#2224)filter::Notcombinator (#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.15Compare Source
This release fixes a bug where the
reloadlayer would fail to pass throughmax_level_hintto the underlying layer, potentially breaking filtering.Fixed
max_level_hintto the innerLayer(#2204)Thanks to @guswynn for contributing to this release!
v0.3.14: tracing-subscriber 0.3.14Compare Source
This release fixes multiple filtering bugs in the
Layerimplementations forOption<impl Layer>andVec<impl Layer>.Fixed
Layer::event_enabledimplementation forOption<impl Layer<S>>returning
falsewhen theOptionisNone, disabling all events globally(#2193)
Layer::max_level_hintimplementation forOption<impl Layer<S>>incorrectly disabling max level filtering when the option is
None(#2195)Layer::max_level_hintimplementation forVec<impl Layer<S>>returning
LevelFilter::ERRORrather thanLevelFilter::OFFwhen theVecis empty (#2195)
Thanks to @CAD97 and @guswynn for contributing to this release!
v0.3.13: tracing-subscriber 0.3.13Compare Source
This release of
tracing-subscriberfixes a compilation failure due to anincorrect
tracing-coredependency that was introduced in v0.3.12.Changed
v0.3.12: tracing-subscriber 0.3.12Compare Source
This release of
tracing-subscriberadds a newLayer::event_enabledmethod,which allows
Layers to filter events after their field values are recorded;a
Filterimplementation forreload::Layer, to make usingreloadwithper-layer filtering more ergonomic, and additional inherent method downcasting
APIs for the
Layeredtype. In addition, it includes dependency updates, andminor fixes for documentation and feature flagging.
Added
Layer::event_enabledmethod, which can be implemented to filterevents based on their field values (#2008)
Filterimplementation forreload::Layer(#2159)Layered::downcast_refandLayered::isinherent methods(#2160)
Changed
parking_lotto 0.13.0 (#2143)lazy_staticdependency withonce_cell([#2147])Fixed
tracing-corefeatures by default (#2107)#1088)
Thanks to @ben0x539, @jamesmunns, @georgemp, @james7132, @jswrenn, @CAD97, and
@guswynn for contributing to this release!
v0.3.11: tracing-subscriber 0.3.11Compare Source
This is a bugfix release for the
Filterimplementation forEnvFilteraddedin v0.3.10.
Fixed
Filter::on_recordcallback toEnvFilter'sFilterimpl (#2058)EnvFiltermethods with both the
FilterandLayertraits in scope (#2057)EnvFilter::builder().parse()and other parsing methodsreturning 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.10Compare Source
This release adds several new features, including a
Filterimplementation andnew builder API for
EnvFilter, support for using aVec<L> where L: Layerasa
Layer, and a number of smaller API improvements to make working with dynamicand reloadable layers easier.
Added
FilterforEnvFilter, allowing it to be used withper-layer filtering (#1983)
Filter::on_new_span,Filter::on_enter,Filter::on_exit,Filter::on_closeandFilter::on_recordcallbacks toallow
Filters to track span states internally (#1973, #2017, #2031)Filtered::filterandFiltered::filter_mutaccessors(#1959)
Filtered::innerandFiltered::inner_mutaccessors to borrowthe wrapped
Layer(#2034)LayerforVec<L: Layer>, to allow composing togethera dynamically sized list of
Layers (#2027)Layer::boxedmethod to make type-erasingLayers easier(#2026)
fmt::Layer::writerandfmt::Layer::writer_mutaccessors (#2034)fmt::Layer::set_ansimethod to allow changing the ANSI formattingconfiguration at runtime (#2034)
EnvFilter::builderto configure a newEnvFilterprior toparsing it (#2035)
#2023)
Fixed
fmt::Layer's auto traits no longer depend on theSubscribertypeparameter's auto traits (#2025)
ansifeature 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.9Compare Source
This release updates the minimum supported Rust version (MSRV) to 1.49.0, and
updates the (optional) dependency on
parking_lotto v0.12.Changed
parking_lot: updated to v0.12 (008339d)Added
v0.3.8: tracing-subscriber 0.3.8Compare Source
This release adds experimental support for recording structured field
values using the
valuablecrate to theformat::Jsonformatter. Inparticular, user-defined types which are recorded using their
valuable::Valuableimplementations will be serialized as JSON objects,rather than using their
fmt::Debugrepresentation. See this blog postfor details on
valuable.Note that
valuablesupport currently requires--cfg tracing_unstable. Seethe documentation for details.
Additionally, this release includes a number of other smaller API improvements.
Added
valuablevalues as structuredJSON (#1862, #1901)
Targets::would_enablemethod for testing if aTargetsfilterwould enable a given target (#1903)
map_event_format,map_fmt_fields, andmap_writermethods tofmt::Layerandfmt::SubscriberBuilder(#1871)Changed
tracing-core: updated to 0.1.22Fixed
smallvecminimal version to 1.2.0, to fix compilation errors with-Z minimal-versions(#1890)Thanks to @guswynn, @glts, and @lilyball for contributing to this release!
v0.3.7: tracing-subscriber 0.3.7Compare Source
This release adds combinators for combining filters.
Additionally, this release also updates the
thread-localcrate to v1.1.4,fixing warnings for the security advisory RUSTSEC-2022-0006. Note that
previous versions of
tracing-subscriberdid not use any of thethread-localcrate's APIs effected by the vulnerability. However, updating the version fixes
warnings emitted by
cargo auditand similar tools.Added
Fixed
thread-localto v1.1.4 (#1858)Thanks to new contributor @matze for contributing to this release!
v0.3.6: tracing-subscriber 0.3.6Compare Source
This release adds configuration options to
tracing_subscriber::fmtto logsource code locations for events.
Added
with_fileandwith_line_numberconfiguration methods to
fmt::Format,fmt::SubscriberBuilder, andfmt::Layer(#1773)Fixed
Prettyformatter (#1833)
Deprecated
Pretty::with_source_location, as it can now be replacedby the more general
Format,SubscriberBuilder, andLayermethods(#1773)
Thanks to new contributor @renecouto for contributing to this release!
v0.3.5: tracing-subscriber 0.3.5Compare Source
This release re-enables
RUST_LOGfiltering intracing_subscriber::fmt'sdefault initialization methods, and adds an
OffsetLocalTimeformatter forusing local timestamps with the
timecrate.Added
OffsetLocalTimeformatter tofmt::timefor formatting localtimestamps with a fixed offset (#1772)
Fixed
Targetsfilter tofmt::init()andfmt::try_init()whenthe "env-filter" feature is disabled, so that
RUST_LOGis still honored(#1781)
Thanks to @marienz and @ishitatsuyuki for contributing to this release!
v0.3.4: tracing-subscriber 0.3.4Compare Source
This release contains bugfixes for the
fmtmodule, as well as documentationimprovements.
Fixed
fmtnot emitting log lines when timestamp formatting fails(#1689)
Prettyformatter(#1778)
Thanks to new contributors @Swatinem and @rukai for contributing to this
release!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.