12 KiB
0.1.27 (June 7, 2022)
This release of tracing-core introduces a new DefaultCallsite type, which
can be used by instrumentation crates rather than implementing their own
callsite types. Using DefaultCallsite may offer reduced overhead from callsite
registration.
Added
DefaultCallsite, a pre-writtenCallsiteimplementation for use in instrumentation crates (#2083)ValueSet::lenandRecord::lenmethods returning the number of fields in aValueSetorRecord(#2152)
Changed
- Replaced
lazy_staticdependency withonce_cell(#2147)
Documented
Thanks to new contributors @jamesmunns and @james7132 for contributing to this release!
0.1.26 (April 14, 2022)
This release adds a Value implementation for Box<T: Value> to allow
recording boxed values more conveniently. In particular, this should improve
the ergonomics of the implementations for dyn std::error::Error trait objects,
including those added in v0.1.25.
Added
Valueimplementation forBox<T> where T: Value(#2071)
Fixed
- Broken documentation links (#2068)
Thanks to new contributor @ben0x539 for contributing to this release!
0.1.25 (April 12, 2022)
This release adds additional Value implementations for std::error::Error
trait objects with auto trait bounds (Send and Sync), as Rust will not
auto-coerce trait objects. Additionally, it fixes a bug when setting scoped
dispatchers that was introduced in the previous release (v0.1.24).
Added
Valueimplementations fordyn Error + Send + 'static,dyn Error + Send + Sync + 'static,dyn Error + Sync + 'static(#2066)
Fixed
- Failure to use the global default dispatcher if a thread has set a scoped default prior to setting the global default, and unset the scoped default after setting the global default (#2065)
Thanks to @lilyball for contributing to this release!
0.1.24 (April 1, 2022)
This release fixes a bug where setting NoSubscriber as the local default would
not disable the global default subscriber locally.
Fixed
- Setting
NoSubscriberas the local default now correctly disables the global default subscriber (#2001) - Fixed compilation warnings with the "std" feature disabled (#2022)
Changed
- Removed unnecessary use of
write!andformat_args!macros (#1988)
0.1.23 (March 8, 2022)
Changed
- Removed
#[inline]attributes from someDispatchmethods whose callers are now inlined (#1974) - Bumped minimum supported Rust version (MSRV) to Rust 1.49.0 (#1913)
0.1.22 (February 3, 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.
Added
- field: Experimental support for recording field values using the
valuablecrate (#1608, #1888, #1887) - field: Added
ValueSet::recordmethod (#1823) - subscriber:
Defaultimpl forNoSubscriber(#1785) - metadata: New
Kind::HINTto support theenabled!macro intracing(#1883, #1891)
Fixed
Thanks to @xd009642, @Skepfyr, @guswynn, @Folyd, and @mbergkvist for contributing to this release!
0.1.21 (October 1, 2021)
This release adds support for recording Option<T> where T: Value as typed
tracing field values.
Added
- field:
Valueimpl forOption<T> where T: Value(#1585)
Fixed
- Fixed deprecation warnings when building with
default-featuresdisabled (#1603, #1606) - Documentation fixes and improvements (#1595, #1601)
Thanks to @brianburgers, @DCjanus, and @matklad for contributing to this release!
0.1.20 (September 12, 2021)
This release adds support for f64 as one of the tracing-core
primitive field values, allowing floating-point values to be recorded as
typed values rather than with fmt::Debug. Additionally, it adds
NoSubscriber, a Subscriber implementation that does nothing.
Added
- subscriber:
NoSubscriber, a no-opSubscriberimplementation (#1549) - field: Added
Visit::record_f64and support for recording floating-point values (#1507)
Thanks to new contributors @jsgf and @maxburke for contributing to this release!
0.1.19 (August 17, 2021)
Added
Level::as_str(#1413)Hashimplementation forLevelandLevelFilter(#1456)Valueimplementation for&mut T where T: Value(#1385)- Multiple documentation fixes and improvements (#1435, #1446)
Thanks to @Folyd, @teozkr, and @dvdplm for contributing to this release!
0.1.18 (April 30, 2021)
Added
Subscriberimpl forBox<dyn Subscriber + Send + Sync + 'static>(#1358)Subscriberimpl forArc<dyn Subscriber + Send + Sync + 'static>(#1374)- Symmetric
Fromimpls for existingIntoimpls onCurrentandOption<Id>(#1335) Attributes::fieldsaccessor that returns the set of fields defined on a span'sAttributes(#1331)
Thanks to @Folyd for contributing to this release!
0.1.17 (September 28, 2020)
Fixed
- Incorrect inlining of
Event::dispatchandEvent::child_of, which could result indispatcher::get_defaultbeing inlined at the callsite (#994)
Added
Copyimplementations forLevelandLevelFilter(#992)
Thanks to new contributors @jyn514 and @TaKO8Ki for contributing to this release!
0.1.16 (September 8, 2020)
Fixed
- Added a conversion from
Option<Level>toLevelFilter. This resolves a previously unreported regression whereOption<Level>was no longer a valid LevelFilter. (#966)
0.1.15 (August 22, 2020)
Fixed
- When combining
Interestfrom multiple subscribers, if the interests differ, the current subscriber is now always asked if a callsite should be enabled (#927)
Added
- Internal API changes to support optimizations in the
tracingcrate (#943) - docs: Multiple fixes and improvements (#913, #941)
0.1.14 (August 10, 2020)
Fixed
- Incorrect calculation of global max level filter which could result in fast filtering paths not being taken (#908)
0.1.13 (August 4, 2020)
Fixed
- Missing
fmt::Displayimpl forfield::DisplayValuecausing a compilation failure when the "log" feature is enabled (#887)
Thanks to @d-e-s-o for contributing to this release!
0.1.12 (July 31, 2020)
Added
LevelFiltertype andLevelFilter::current()for returning the highest level that any subscriber will enable (#853)Subscriber::max_level_hintoptional trait method, for setting the value returned byLevelFilter::current()(#853)
Fixed
- docs: Removed outdated reference to a Tokio API that no longer exists (#857)
Thanks to new contributor @dignati for contributing to this release!
0.1.11 (June 8, 2020)
Changed
- Replaced use of
inner_local_macroswith$crate::(#729)
Added
must_usewarning to guards returned bydispatcher::set_default(#686)fmt::Debugimpl todyn Values (#696)- Functions to convert between
span::IdandNonZeroU64(#770) - More obvious warnings in documentation (#769)
Fixed
- Compiler error when
tracing-core/stdfeature is enabled buttracing/stdis not (#760) - Clippy warning on vtable address comparison in
callsite::Identifier(#749) - Documentation formatting issues (#715, #771)
Thanks to @bkchr, @majecty, @taiki-e, @nagisa, and @nvzqz for contributing to this release!
0.1.10 (January 24, 2020)
Added
field::Emptytype for declaring empty fields whose values will be recorded later (#548)field::Valueimplementations forWrappingandNonZero*numbers (#538)
Fixed
- Broken and unresolvable links in RustDoc (#595)
Thanks to @oli-cosmian for contributing to this release!
0.1.9 (January 10, 2020)
Added
- API docs now show what feature flags are required to enable each item (#523)
Fixed
- A panic when the current default subscriber subscriber calls
dispatcher::with_defaultas it is being dropped (#522) - Incorrect documentation for
Subscriber::drop_span(#524)
0.1.8 (December 20, 2019)
Added
Defaultimpl forDispatch(#411)
Fixed
- Removed duplicate
lazy_staticdependencies (#424) - Fixed no-std dependencies being enabled even when
stdfeature flag is set (#424) - Broken link to
MetadatainEventdocs (#461)
0.1.7 (October 18, 2019)
Added
- Added
dispatcher::set_defaultAPI which returns a drop guard (#388)
Fixed
- Added missing
Valueimpl foru8(#392) - Broken links in docs.
0.1.6 (September 12, 2019)
Added
- Internal APIs to support performance optimizations (#326)
Fixed
- Clarified wording in
field::displaydocumentation (#340)
0.1.5 (August 16, 2019)
Added
std::error::Erroras a new primitiveValuetype (#277)Event::newandEvent::new_child_ofto manually constructEvents (#281)
0.1.4 (August 9, 2019)
Added
- Support for
no-std+liballoc(#256)
Fixed
- Broken links in RustDoc (#259)
0.1.3 (August 8, 2019)
Added
std::fmt::Displayimplementation forLevel(#194)std::str::FromStrimplementation forLevel(#195)
0.1.2 (July 10, 2019)
Deprecated
Subscriber::drop_spanin favor of newSubscriber::try_close(#168)
Added
Into<Option<&Id>>,Into<Option<Id>>, andInto<Option<&'static Metadata<'static>>>impls forspan::Current(#170)Subscriber::try_closemethod (#153)- Improved documentation for
dispatcher(#171)
0.1.1 (July 6, 2019)
Added
Subscriber::current_spanAPI to return the current span (#148).span::Currenttype, representing theSubscriber's view of the current span (#148).
Fixed
- Typos and broken links in documentation (#123, #124, #128, #154)
0.1.0 (June 27, 2019)
- Initial release