27 KiB
0.1.37 (October 6, 2022)
This release of tracing incorporates changes from tracing-core
v0.1.30 and tracing-attributes v0.1.23,
including the new Subscriber::on_register_dispatch method for performing late
initialization after a Subscriber is registered as a Dispatch, and bugfixes
for the #[instrument] attribute. Additionally, it fixes instances of the
bare_trait_objects lint, which is now a warning on tracing's MSRV and will
become an error in the next edition.
Fixed
- attributes: Incorrect handling of inner attributes in
#[instrument]ed functions (#2307) - attributes: Incorrect location of compiler diagnostic spans generated for
type errors in
#[instrument]edasync fns (#2270) - attributes: Updated
syndependency to fix compilation with-Z minimal-versions(#2246) bare_trait_objectswarning invalueset!macro expansion (#2308)
Added
- core:
Subscriber::on_register_dispatchmethod (#2269) - core:
WeakDispatchtype andDispatch::downgrade()function (#2293)
Changed
Documented
- Added
tracing-webandreqwest-tracingto related crates (#2283, #2331)
Thanks to new contributors @compiler-errors, @e-nomem, @WorldSEnder, @Xiami2012, and @tl-rodrigo-gryzinski, as well as @jswrenn and @CAD97, for contributing to this release!
0.1.36 (July 29, 2022)
This release adds support for owned values and fat pointers as arguments to the
Span::record method, as well as updating the minimum tracing-core version
and several documentation improvements.
Fixed
Added
- Support for owned values and fat pointers in
Span::record(#2212) - Documentation improvements (#2208, #2163)
Changed
tracing-core: updated to 0.1.29
Thanks to @fredr, @cgbur, @jyn514, @matklad, and @CAD97 for contributing to this release!
0.1.35 (June 8, 2022)
This release reduces the overhead of callsite registration by using new
tracing-core APIs.
Added
- Use
DefaultCallsiteto reduce callsite registration overhead ([#2083])
Changed
tracing-core: updated to 0.1.27
0.1.34 (April 14, 2022)
This release includes bug fixes for the "log" support feature and for the use of both scoped and global default dispatchers in the same program.
Fixed
- Failure to use the global default dispatcher when a thread sets a local default dispatcher before the global default is set (#2065)
- log: Compilation errors due to
asyncblock/fn futures becoming!Sendwhen the "log" feature flag is enabled (#2073) - Broken links in documentation (#2068)
Thanks to @ben0x539 for contributing to this release!
0.1.33 (April 9, 2022)
This release adds new span_enabled! and event_enabled! variants of the
enabled! macro, for testing whether a subscriber would specifically enable a
span or an event.
Added
Fixed
- Compilation warning when compiling for <=32-bit targets (including
wasm32) (#2060)
Thanks to @guswynn, @arifd, @hrxi, @CAD97, and @name1e5s for contributing to this release!
0.1.32 (March 8th, 2022)
This release reduces the overhead of creating and dropping disabled
spans significantly, which should improve performance when no tracing
subscriber is in use or when spans are disabled by a filter.
Fixed
- attributes: Compilation failure with
--minimal-versionsdue to a too-permissivesyndependency (#1960)
Changed
0.1.31 (February 17th, 2022)
This release increases the minimum supported Rust version (MSRV) to 1.49.0. In addition, it fixes some relatively rare macro bugs.
Added
- Added
tracing-forestto the list of related crates (#1935)
Changed
- Updated minimum supported Rust version (MSRV) to 1.49.0 (#1913)
Fixed
- Fixed the
warn!macro incorrectly generating an event with theTRACElevel (#1930) - Fixed macro hygiene issues when used in a crate that defines its own
concat!macro, for real this time (#1918)
Thanks to @QnnOkabayashi, @nicolaasg, and @teohhanhui for contributing to this release!
0.1.30 (February 3rd, 2022)
This release adds experimental support for recording structured field
values using the valuable crate. See this blog post for
details on valuable.
Note that valuable support currently requires --cfg tracing_unstable. See
the documentation for details.
This release also adds a new enabled! macro for testing if a span or event
would be enabled.
Added
- field: Experimental support for recording field values using the
valuablecrate (#1608, #1888, #1887) enabled!macro for testing if a span or event is enabled (#1882)
Changed
Fixed
- log: Fixed "use of moved value" compiler error when the "log" feature is enabled (#1823)
- Fixed macro hygiene issues when used in a crate that defines its own
concat!macro (#1842) - A very large number of documentation fixes and improvements.
Thanks to @@Vlad-Scherbina, @Skepfyr, @Swatinem, @guswynn, @teohhanhui, @xd009642, @tobz, @d-e-s-o@0b01, and @nickelc for contributing to this release!
0.1.29 (October 5th, 2021)
This release adds support for recording Option<T> where T: Value as typed
tracing field values. It also includes significant performance improvements
for functions annotated with the #[instrument] attribute when the generated
span is disabled.
Changed
tracing-core: updated to v0.1.21tracing-attributes: updated to v0.1.18
Added
- field:
Valueimpl forOption<T> where T: Value(#1585) - attributes: - improved performance when skipping
#[instrument]-generated spans below the max level (#1600, #1605, #1614, #1616, #1617)
Fixed
- instrument: added missing
Futureimplementation forWithSubscriber, making theWithDispatchextension trait actually useable (#1602) - Documentation fixes and improvements (#1595, #1601, #1597)
Thanks to @brianburgers, @mattiast, @DCjanus, @oli-obk, and @matklad for contributing to this release!
0.1.28 (September 17th, 2021)
This release fixes an issue where the RustDoc documentation was rendered incorrectly. It doesn't include any actual code changes, and is very boring and can be ignored.
Fixed
- docs: Incorrect documentation rendering due to unclosed
<div>tag (#1572)
0.1.27 (September 13, 2021)
This release adds a new Span::or_current method to aid in efficiently
propagating span contexts to spawned threads or tasks. Additionally, it updates
the tracing-core version to 0.1.20 and the tracing-attributes version to
0.1.16, ensuring that a number of new features in those crates are present.
Fixed
- instrument: Added missing
WithSubscriberimplementations for futures and other types (#1424)
Added
Span::or_currentmethod, to help with efficient span context propagation (#1538)- attributes: add
skip_alloption to#[instrument](#1548) - attributes: record primitive types as primitive values rather than as
fmt::Debug(#1378) - core:
NoSubscriber, a no-opSubscriberimplementation ([#1549]) - core: Added
Visit::record_f64and support for recording floating-point values (#1507, #1522) - A large number of documentation improvements and fixes (#1369, #1398, #1435, #1442, #1524, #1556)
Thanks to new contributors @dzvon and @mbergkvist, as well as @teozkr, @maxburke, @LukeMathWalker, and @jsgf, for contributing to this release!
0.1.26 (April 30, 2021)
Fixed
- attributes: Compatibility between
#[instrument]andasync-traitv0.1.43 and newer ([#1228]) - Several documentation fixes (#1305, #1344)
Added
Subscriberimpl forBox<dyn Subscriber + Send + Sync + 'static>(#1358)Subscriberimpl forArc<dyn Subscriber + Send + Sync + 'static>(#1374)- Symmetric
Fromimpls for existingIntoimpls onspan::Current,Span, andOption<Id>(#1335, #1338) From<EnteredSpan>implementation forOption<Id>, allowingEnteredSpanto be used in aspan!macro'sparent:field (#1325)Attributes::fieldsaccessor that returns the set of fields defined on a span'sAttributes(#1331)
Thanks to @Folyd, @nightmared, and new contributors @rmsc and @Fishrock123 for contributing to this release!
0.1.25 (February 23, 2021)
Added
Span::enteredmethod for entering a span and moving it into a guard by value rather than borrowing it (#1252)
Thanks to @matklad for contributing to this release!
0.1.24 (February 17, 2021)
Fixed
- attributes: Compiler error when using
#[instrument(err)]on functions which returnimpl Trait(#1236) - Fixed broken match arms in event macros (#1239)
- Documentation improvements (#1232)
Thanks to @bkchr and @lfranke for contributing to this release!
0.1.23 (February 4, 2021)
Fixed
- attributes: Compiler error when using
#[instrument(err)]on functions with mutable parameters (#1167) - attributes: Missing function visibility modifier when using
#[instrument]withasync-trait(#977) - attributes Removed unused
synfeatures ([#928]) - log: Fixed an issue where the
tracingmacros would generate code for events whose levels are disabled statically by thelogcrate'sstatic_max_level_XXXfeatures (#1175) - Fixed deprecations and clippy lints (#1195)
- Several documentation fixes and improvements (#941, #965, #981, #1146, #1215)
Changed
- attributes:
tracing-futuresdependency is no longer required when using#[instrument]on async functions (#808) - attributes: Updated
tracing-attributesminimum dependency to v0.1.12 (#1222)
Thanks to @nagisa, @Txuritan, @TaKO8Ki, @okready, and @krojew for contributing to this release!
0.1.22 (November 23, 2020)
Changed
- Updated
pin-project-litedependency to 0.2 (#1108)
0.1.21 (September 28, 2020)
Fixed
- Incorrect inlining of
Span::new,Span::new_root, andSpan::new_child_of, which could result indispatcher::get_defaultbeing inlined at the callsite (#994) - Regression where using a struct field as a span or event field when other fields on that struct are borrowed mutably would fail to compile (#987)
Changed
- Updated
tracing-coreto 0.1.17 (#992)
Added
Instrumenttrait andInstrumentedtype for attaching aSpanto aFuture(#808)Copyimplementations forLevelandLevelFilter(#992)- Multiple documentation fixes and improvements (#964, #980, #981)
Thanks to @nagisa, and new contributors @SecurityInsanity, @froydnj, @jyn514 and @TaKO8Ki for contributing to this release!
0.1.20 (August 24, 2020)
Changed
- Significantly reduced assembly generated by macro invocations (#943)
- Updated
tracing-coreto 0.1.15 (#943)
Added
- Documented minimum supported Rust version policy (#941)
0.1.19 (August 10, 2020)
Fixed
- Updated
tracing-coreto fix incorrect calculation of the global max level filter (#908)
Added
- attributes: Support for using
selfin field expressions when instrumentingasync-traitfunctions (#875) - Several documentation improvements (#832, #881, #896, #897, #911, #913)
Thanks to @anton-dutov, @nightmared, @mystor, and @toshokan for contributing to this release!
0.1.18 (July 31, 2020)
Fixed
- Fixed a bug where
LevelFilter::OFF(and thus also thestatic_max_level_offfeature flag) would enable all traces, rather than none (#853) - log: Fixed
tracingmacros andSpans not checkinglog::max_levelbefore emittinglogrecords (#870)
Changed
- macros: Macros now check the global max level (
LevelFilter::current) before the per-callsite cache when determining if a span or event is enabled. This significantly improves performance in some use cases (#853) - macros: Simplified the code generated by macro expansion significantly,
which may improve compile times and/or
rustcoptimizatation of surrounding code (#869, #869) - macros: Macros now check the static max level before checking any runtime
filtering, improving performance when a span or event is disabled by a
static_max_level_XXXfeature flag (#868) LevelFilteris now a re-export of thetracing_core::LevelFiltertype, it can now be used interchangably with the versions intracing-coreandtracing-subscriber(#853)- Significant performance improvements when comparing
LevelFilters andLevels (#853) - Updated the minimum
tracing-coredependency to 0.1.12 (#853)
Added
- macros: Quoted string literals may now be used as field names, to allow fields whose names are not valid Rust identifiers (#790)
- docs: Several documentation improvements (#850, #857, #841)
LevelFilter::current()function, which returns the highest level that any subscriber will enable (#853)Subscriber::max_level_hintoptional trait method, for setting the value returned byLevelFilter::current()(#853)
Thanks to new contributors @cuviper, @ethanboxx, @ben0x539, @dignati, @colelawrence, and @rbtcollins for helping out with this release!
0.1.17 (July 22, 2020)
Changed
- log: Moved verbose span enter/exit log records to "tracing::span::active" target, allowing them to be filtered separately (#833)
- log: All span lifecycle log records without fields now have the
Tracelog filter, to guard againstlogusers enabling them by default with blanket level filtering (#833)
Fixed
- log/macros: Fixed missing implicit imports of the
tracing::field::debugandtracing::field::displayfunctions inside the macros when the "log" feature is enabled (#835)
0.1.16 (July 8, 2020)
Added
- attributes: Support for arbitrary expressions as fields in
#[instrument](#672) - attributes:
#[instrument]now emits a compiler warning when ignoring unrecognized input (#672, #786) - Improved documentation on using
tracingin async code (#769)
Changed
- Updated
tracing-coredependency to 0.1.11
Fixed
- macros: Excessive monomorphization in macros, which could lead to longer compilation times (#787)
- log: Compiler warnings in macros when
logorlog-alwaysfeatures are enabled (#753) - Compiler error when
tracing-core/stdfeature is enabled buttracing/stdis not (#760)
Thanks to @nagisa for contributing to this release!
0.1.15 (June 2, 2020)
Changed
- macros: Replaced use of legacy
local_inner_macroswith$crate::(#740)
Added
- Docs fixes and improvements (#742, #731, #730)
Thanks to @bnjjj, @blaenk, and @LukeMathWalker for contributing to this release!
0.1.14 (May 14, 2020)
Added
- log: When using the
logcompatibility feature alongside atracingSubscriber, log records for spans now include span IDs (#613) - attributes: Support for using
#[instrument]on methods that are part ofasync-traittrait implementations (#711) - attributes: Optional
#[instrument(err)]argument to automatically emit an event if an instrumented function returnsErr(#637) - Added
#[must_use]attribute to the guard returned bysubscriber::set_default(#685)
Changed
- log: Made
logrecords emitted by spans much less noisy when span IDs are not available (#613)
Fixed
- Several typos in the documentation (#656, #710, #715)
Thanks to @FintanH, @shepmaster, @inanna-malick, @zekisharif, @bkchr, @majecty, @ilana and @nightmared for contributing to this release!
0.1.13 (February 26, 2019)
Added
- field:
field::Emptytype for declaring empty fields whose values will be recorded later (#548) - field:
field::Valueimplementations forWrappingandNonZero*numbers (#538) - attributes: Support for adding arbitrary literal fields to spans generated
by
#[instrument](#569) - attributes:
#[instrument]now emits a helpful compiler error when attempting to skip a function parameter (#600)
Changed
- attributes: The
#[instrument]attribute was placed under an on-by-default feature flag "attributes" (#603)
Fixed
- Broken and unresolvable links in RustDoc (#595)
Thanks to @oli-cosmian and @Kobzol for contributing to this release!
0.1.12 (January 11, 2019)
Added
Span::with_subscribermethod to access the subscriber that tracks aSpan(#503)- API documentation now shows which features are required by feature-flagged items (#523)
- Improved README examples (#496)
- Documentation links to related crates (#507)
0.1.11 (December 20, 2019)
Added
Span::is_nonemethod (#475)LevelFilter::into_levelmethod (#470)LevelFilter::from_levelfunction andFrom<Level>impl (#471)- Documented minimum supported Rust version (#482)
Fixed
- Incorrect parameter type to
Span::follows_fromthat made it impossible to call (#467) - Missing whitespace in
logrecords generated when enabling thelogfeature flag (#484) - Typos and missing links in documentation (#405, #423, #439)
0.1.10 (October 23, 2019)
Added
- Support for destructuring in arguments to
#[instrument]ed functions (#397) - Generated field for
selfparameters when#[instrument]ing methods (#397) - Optional
skipargument to#[instrument]for excluding function parameters from generated spans (#359) - Added
dispatcher::set_defaultandsubscriber::set_defaultAPIs, which return a drop guard (#388)
Fixed
- Some minor documentation errors (#356, #370)
0.1.9 (September 13, 2019)
Fixed
- Fixed
#[instrument]ed async functions not compiling onnightly-2019-09-11or newer (#342)
Changed
- Significantly reduced performance impact of skipped spans and events when a
Subscriberis not in use (#326) - The
logfeature will now only causetracingspans and events to emit log records when aSubscriberis not in use (#346)
Added
- Added support for overriding the name of the span generated by
#[instrument](#330) log-alwaysfeature flag to emit log records even when aSubscriberis set (#346)
0.1.8 (September 3, 2019)
Changed
- Reorganized and improved API documentation (#317)
Removed
- Dev-dependencies on
ansi_termandhumantimecrates, which were used only for examples (#316)
0.1.7 (August 30, 2019)
Changed
- New (curly-brace free) event message syntax to place the message in the first field rather than the last (#309)
Fixed
- Fixed a regression causing macro stack exhaustion when the
logfeature flag is enabled (#304)
0.1.6 (August 20, 2019)
Added
std::error::Erroras a new primitive type (#277)- Support for mixing key-value fields and
format_argsmessages without curly braces as delimiters (#288)
Changed
tracing-coredependency to 0.1.5 (#294)tracing-attributesdependency to 0.1.2 (#297)
0.1.5 (August 9, 2019)
Added
- Support for
no-std+liballoc(#263)
Changed
- Using the
#[instrument]attribute onasync fns no longer requires a feature flag (#258)
Fixed
- The
#[instrument]macro now works on generic functions (#262)
0.1.4 (August 8, 2019)
Added
#[instrument]attribute for automatically adding spans to functions (#253)
0.1.3 (July 11, 2019)
Added
- Log messages when a subscriber indicates that a span has closed, when the
logfeature flag is enabled (#180).
Changed
tracing-coreminimum dependency version to 0.1.2 (#174).
Fixed
- Fixed an issue where event macro invocations with a single field, using local variable shorthand, would recur infinitely (#166).
- Fixed uses of deprecated
tracing-coreAPIs (#174).
0.1.2 (July 6, 2019)
Added
Span::none()constructor, which does not require metadata and returns a completely empty span (#147).Span::current()function, returning the current span if it is known to the subscriber (#148).
Fixed
- Broken macro imports when used prefixed with
tracing::(#152).
0.1.1 (July 3, 2019)
Changed
cfg_ifdependency to 0.1.9.
Fixed
- Compilation errors when the
logfeature is enabled (#131). - Unclear wording and typos in documentation (#124, #128, #142).
0.1.0 (June 27, 2019)
- Initial release