Open
Description
Feature Request
Crates
tracing-core
Motivation
In order to reduce churn throughout the ecosystem, we intend to synchronize the tokio
0.3 and tracing-core
0.2 releases. This issue will track and discuss tracing-core
0.2 breaking changes.
Note that some of the listed changes involve phrasing like "Consider doing X". In those cases, the benefits and drawbacks of those changes need to be investigated further before we commit to making them in 0.2.
Minor API Tweaks
These are low-hanging fruit API changes that don't require a great deal of work, but can't be changed without breaking existing APIs.
- Make arguments to
set_default
andset_global_default
consistent (Consistency between various *default methods #455) - Consider changing
Event
struct to have non-'static
metadata (Cow
?) (needs issue) - Rename
Subscriber
toCollector
, such thattracing_subscriber::layer::Layer
can be renamed toSubscriber
(Renametracing_subscriber::layer::Layer
to something closer toSubscriber
. #641) - Consider changing
Subscriber::new_span
to returnOption<Id>
(core: consider changingSubscriber::new_span
to returnOption<Id>
#924) - Remove APIs deprecated in v0.1.x
- Remove default impls from some
Collect
methods (core: removeCollect
default impls for 0.2 #1262)
Metadata/Callsite improvements
- Investigate removing cyclic
Metadata
<->Callsite
reference (needs issue) - Consider using
Cow<str, 'static>
forMetadata
strings rather than&'static str
(needs issue) -
Consider introducing statically discoverable metadata (core: introduce statically discoverable metadata #969)
Value System Improvements
See RFC for ValueSet
ergonomics improvements #697.
-
ReworkValueSet
s to support indexing as well as visiting (core: Rework ValueSets to support indexing in addition to visiting #926) -
Consider changingValue
to dispatch primitives w/ an enum rather than trait objects (core: Consider changing Value to dispatch primitives with an enum rather than trait objects #925) -
Figure out Pass slices into FieldSet::value_set instead of array references #782 while we're messing withValueSet
s -
valuable
integration (core: tracking issue forvaluable
integration #1570)