-
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
subscriber: Rename Layer::new_span
method for consistency
#630
Comments
new_span
method for consistencynew_span
method for consistency
new_span
method for consistencyLayer::new_span
method for consistency
👍 we could also start this in a non-breaking change by adding a separate BTW: I edited the issue title a little to make it clearer that this is about changing the |
Hi @hawkw I would like to make a PR for this. Is it possible ? For the naming I prefer |
@bnjjj so, we would definitely welcome a PR. However, I should let you know that there is one issue with this ticket in particular. This would require a breaking change, and, in order to limit the frequency of breaking releases, we try to wait until we have a large number of breaking changes to make before publishing a breaking change release (in this case, So, while we'd welcome a PR, it may not be able to merge until we're ready to publish 0.3.0. This may take some time, since we would need to prepare other potential breaking changes. This means that if code that your PR changes is changed in other PRs as well, you'd have to update it when we're ready to merge. Just thought you should be aware of that complication. Thanks for your interest in contributing! |
Seems good for me. I will take the point and update PR further if needed. |
…pan for consistency tokio-rs#630 Signed-off-by: Benjamin Coenen <[email protected]>
While we're breaking things, we may as well do this as well. Closes tokio-rs#630 Closes tokio-rs#662
Right now the four event handling fns spans in the Layer trait are called
on_exit
,on_enter
,on_close
, andnew_span
new_span
breaks the pattern set by the other methods and can be a little surprising / confusing, I spent more than a few seconds trying to find a method calledon_open
.Next time we are making breaking changes we should consider renaming
new_span
toon_new_span
oron_open
.The text was updated successfully, but these errors were encountered: