-
Notifications
You must be signed in to change notification settings - Fork 755
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
Rename tracing_subscriber::layer::Layer
to something closer to Subscriber
.
#641
Comments
I'm definitely +1 for renaming Additionally, if we reexport |
I think this can be mitigated through loud documentation telling users to be aware of the distinction in
Given that, I think we should probably thinking about what we want to break in
That's a solid point; I didn't consider the impact of those different aliases. For what its worth, I'm happy to move straight over to If we're renaming/deprecating anything, I think setting a budget of a single deprecated alias per entity, per breaking change cycle is a good goal. We'd need to be really confident that the new name is something we'd like to stick with prior to cutting a release to crates.io with that change. |
+1 for |
|
I like That being said, something still doesn't sit right with me. A true tl;dr cause it's sunday and my brain is tired: I do think edit: maybe we could also shamelessly copy https://github.com/open-telemetry/opentelemetry-specification/blob/master/specification/trace/sdk.md naming 👀 |
@samschlegel Thanks for commenting and sorry for the delay in responding! I think we'll eventually have a dedicated Filter trait that can be composed with Collectors and Subscribers1 that describes the behavior of 1 Assuming we rename |
Feature Request
Crates
tracing-subscriber
Motivation
"Layer" is a somewhat abstract name for describing what it is actually: a composable subscriber. Given the centrality of the
Subscriber
trait and our direction to end-customers to use theLayer
trait as much as possible, I think we should attempt to communicate the "subscriber"-ness ofLayer
to end-users as much as possible. It would also align theLayer
trait closer to the crate's name,tracing-subscriber
.Proposal
(The process for renaming is relatively simple, so most of this proposal will focus on non-
tracing-core
breaking changes.) Here are a few options:tracing_core::Subscriber
asCoreSubscriber
intracing
; renameLayer
toSubscriber
. Optionally, at some later point, breaktracing_core
and renameSubscriber
toCoreSubscriber
. In documentation, emphasize thatCoreSubscriber
is low-level trait and thattracing_subscriber::Subscriber
should be preferred whenever possible.Layer
toComposableSubscriber
. I'm not a fan of this option;ComposableSubscriber
is a bit of a mouthful.Alternatives
The text was updated successfully, but these errors were encountered: