Update Rust crate tracing-subscriber to 0.3 #23
Reference in New Issue
Block a user
Delete Branch "renovate/tokio-tracing-monorepo"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
0.2->0.3Release Notes
tokio-rs/tracing (tracing-subscriber)
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 the [NO_COLOR][NO_COLOR] environmentvariable (an informal standard to disable emitting ANSI color escape codes) in
fmt::Layer, reintroduces support for the [chrono][chrono] crate, and increases theminimum supported Rust version (MSRV) to Rust 1.63.0.
It also introduces several minor API improvements.
Added
chrono][chrono] implementations ofFormatTime(#2690)NO_COLOR][NO_COLOR] environment 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 [
valuable][valuable] crate to theformat::Jsonformatter. Inparticular, user-defined types which are recorded using their
[
valuable::Valuable][valuable::Valuable] implementations 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
valuable][valuable] values 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!
v0.3.3: tracing-subscriber 0.3.3Compare Source
This release fixes a pair of regressions in
tracing-subscriber'sfmtmodule.
Fixed
Compactformatter (#1755)PrettyFieldsformatter (and thusformat::Prettyevent formatter) ignoring the
fmt::Layer's ANSI color codeconfiguration (#1747)
v0.3.2: tracing-subscriber 0.3.2Compare Source
Fixed
MakeWriterfiltering not working withBoxMakeWriter(#1694)
Added
Writer::has_ansi_escapesmethod to check if an outputsupports ANSI terminal formatting escape codes (#1696)
when supported (#1702)
FmtContext::span_scope,FmtContext::event_scope,and
FmtContext::parent_spanmethods for accessing the current spanand its scope when formatting an event (#1728)
v0.3.1Compare Source
v0.3.0: tracing-subscriber v0.3.0Compare Source
This is a breaking release of
tracing-subscriber. The primary breakingchange in this release is the removal of the dependency on the [
chronocrate][chrono
crate], due to RUSTSEC-2020-0159. To replace
chrono, support isadded for formatting timestamps using the [
timecrate][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
Layer::new_spantoLayer::on_new_span(#1674)Layerimpl forArc<L: Layer<S>>andArc<dyn Layer<S> + ...>(#1649)
chronocrate][chrono crate] with the [timecrate][time crate] for timestampformatting, to resolve RUSTSEC-2020-0159 (#1646)
jsonandenv-filterfrom default features. They must nowbe enabled explicitly (#1647). This means that
RUST_LOG-based filters will notwork unless the
env-filterfeature is enabled.FormatEvent::format_eventandFormatFields::format_fieldstrait methods to take a
Writertype, rather than a&mut dyn fmt::Writetrait object (#1661)MakeWritertrait by adding a lifetimeparameter (#781)
Changed
Layer::new_spantoLayer::on_new_span(#1674)FormatEvent::format_eventandFormatFields::format_fieldstrait methods to take aWritertype,rather than a
&mut dyn fmt::Writetrait object (#1661)jsonandenv-filterfeature flags are nolonger enabled by default (#1647)
Removed
CurrentSpantype (#1320)SpanRef::parentsiterator, replacedby
SpanRef::scopein [#1431] ([#1648)])Context::scopeiterator, replaced byContext::span_scopeandContext::event_scopein #1431 and#1434 (#1648)
Layerimpl forArc<L: Layer<S>>andArc<dyn Layer<S> + ...>. These interfere with per-layer filtering. (#1649)LayerBuildertype (#1673)fmt::Layer::on_event(renamed tofmt::Layer::fmt_event) (#1673)chronofeature flag and APIs forusing the [
chronocrate][chrono crate] for timestamp formatting (#1646)Added
LocalTimeandUtcTimetypes for formattingtimestamps using the [
timecrate][time crate] (#1646)MakeWritertrait,allowing it to return a borrowed writer. This enables implementations
of
MakeWriterfor types such asMutex<T: io::Write>andstd::fs::File. (#781)#![no_std]targets, by disabling thestdfeature 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.
This PR has been generated by Renovate Bot.
7cb7a41309to08b62fe78b08b62fe78bto8df21f12378df21f1237tocf00b4ddb8cf00b4ddb8toa9d643586ba9d643586bto84f436c37184f436c371to9efc372f8f