-
Notifications
You must be signed in to change notification settings - Fork 734
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
core: tracking issue for tracing-core
0.2 breaking changes
#922
Comments
There are also a handful of proposed changes which don't appear to inherently require breaking API changes, but may not be possible to implement without breaking changes (or could be implemented more easily with breaking changes). It would be worth doing further investigation of those proposed changes while we have the opportunity to break things for 0.2. These include:
|
There are probably other issues and proposed changes I've missed, both on the lists of definite breaking changes, and on the list of proposed changes that should be investigated prior to shipping a breaking release. If anyone can think of anything I've left out, please post them here! |
This changes `set_global_default` to take a reference to its `Dispatch` for a more consistent API at the cost of a one-time clone when initializing the `GLOBAL_DISPATCH` static. Closes tokio-rs#455 Part of tokio-rs#922
As an alternative to tokio-rs#1045, this PR switches `set_default` and `with_default` to take an owned `Dispatch` instead of a ref. See [comment here](tokio-rs#1045 (comment)) for motivation. Closes tokio-rs#455 Part of tokio-rs#922
Opened #1262 for removing some default method impls from |
I believe there was some discussion about changing the Subscriber/Collector trait to enable avoiding map lookups when handling events. Is that reflected yet? If not, I am leaving the comment so we don't forget 😄 . |
There isn't an issue for that yet --- I thought you said you were going to write a proposal for it, but I may have misremembered that. I can try to write one if you'd prefer? |
I can write a proposal, but we should have a placeholder issue until then :) |
Feature Request
Crates
tracing-core
Motivation
In order to reduce churn throughout the ecosystem, we intend to synchronize the
tokio
0.3 andtracing-core
0.2 releases. This issue will track and discusstracing-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.
set_default
andset_global_default
consistent (Consistency between various *default methods #455)Event
struct to have non-'static
metadata (Cow
?) (needs issue)Subscriber
toCollector
, such thattracing_subscriber::layer::Layer
can be renamed toSubscriber
(Renametracing_subscriber::layer::Layer
to something closer toSubscriber
. #641)Subscriber::new_span
to returnOption<Id>
(core: consider changingSubscriber::new_span
to returnOption<Id>
#924)Collect
methods (core: removeCollect
default impls for 0.2 #1262)Metadata/Callsite improvements
Metadata
<->Callsite
reference (needs issue)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 forValueSet
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
svaluable
integration (core: tracking issue forvaluable
integration #1570)The text was updated successfully, but these errors were encountered: