This release adds support for recording Option<T> where T: Value
as typed tracing
field values.
Value
impl for Option<T> where T: Value
(#1585)default-features
disabled (#1603, #1606)Thanks to @brianburgers, @DCjanus, and @matklad for contributing to this release!
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.
NoSubscriber
, a no-op Subscriber
implementation (#1549)Visit::record_f64
and support for recording floating-point values (#1507)Thanks to new contributors @jsgf and @maxburke for contributing to this release!
Level::as_str
(#1413)Hash
implementation for Level
and LevelFilter
(#1456)Value
implementation for &mut T where T: Value
(#1385)Thanks to @Folyd, @teozkr, and @dvdplm for contributing to this release!
Subscriber
impl for Box<dyn Subscriber + Send + Sync + 'static>
(#1358)Subscriber
impl for Arc<dyn Subscriber + Send + Sync + 'static>
(#1374)From
impls for existing Into
impls on Current
and Option<Id>
(#1335)Attributes::fields
accessor that returns the set of fields defined on a span's Attributes
(#1331)Thanks to @Folyd for contributing to this release!
Event::dispatch
and Event::child_of
, which could result in dispatcher::get_default
being inlined at the callsite (#994)Copy
implementations for Level
and LevelFilter
(#992)Thanks to new contributors @jyn514 and @TaKO8Ki for contributing to this release!
Option<Level>
to LevelFilter
. This resolves a previously unreported regression where Option<Level>
was no longer a valid LevelFilter. (#966)Interest
from multiple subscribers, if the interests differ, the current subscriber is now always asked if a callsite should be enabled (#927)tracing
crate (#943)fmt::Display
impl for field::DisplayValue
causing a compilation failure when the “log” feature is enabled (#887)Thanks to @d-e-s-o for contributing to this release!
LevelFilter
type and LevelFilter::current()
for returning the highest level that any subscriber will enable (#853)Subscriber::max_level_hint
optional trait method, for setting the value returned by LevelFilter::current()
(#853)Thanks to new contributor @dignati for contributing to this release!
inner_local_macros
with $crate::
(#729)must_use
warning to guards returned by dispatcher::set_default
(#686)fmt::Debug
impl to dyn Value
s (#696)span::Id
and NonZeroU64
(#770)tracing-core/std
feature is enabled but tracing/std
is not (#760)callsite::Identifier
(#749)Thanks to @bkchr, @majecty, @taiki-e, @nagisa, and @nvzqz for contributing to this release!
field::Empty
type for declaring empty fields whose values will be recorded later (#548)field::Value
implementations for Wrapping
and NonZero*
numbers (#538)Thanks to @oli-cosmian for contributing to this release!
dispatcher::with_default
as it is being dropped (#522)Subscriber::drop_span
(#524)Default
impl for Dispatch
(#411)lazy_static
dependencies (#424)std
feature flag is set (#424)Metadata
in Event
docs (#461)dispatcher::set_default
API which returns a drop guard (#388)Value
impl for u8
(#392)dispatcher::set_default
API which returns a drop guard (#388)Value
impl for u8
(#392)field::display
documentation (#340)std::error::Error
as a new primitive Value
type (#277)Event::new
and Event::new_child_of
to manually construct Event
s (#281)no-std
+ liballoc
(#256)std::fmt::Display
implementation for Level
(#194)std::str::FromStr
implementation for Level
(#195)Subscriber::drop_span
in favor of new Subscriber::try_close
(#168)Into<Option<&Id>>
, Into<Option<Id>>
, and Into<Option<&'static Metadata<'static>>>
impls for span::Current
(#170)Subscriber::try_close
method (#153)dispatcher
(#171)Subscriber::current_span
API to return the current span (#148).span::Current
type, representing the Subscriber
's view of the current span (#148).