-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add a span name getter to opencensus endpoint options #948
Conversation
What are your thoughts about this? Is this what you had in mind? |
f972dce
to
e860742
Compare
@basvanbeek I've updated the PR based on your comments. However, I feel it would be better to split the function into two:
More functions, more work, but they are more expressive IMHO. |
We can do the split... we can also say that if a returned name is empty on a call to |
Updated the PR accordingly. If you have any ideas for better naming, let me know. |
c999092
to
b27801a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic looks good to me with one nit as shown above. Also unsure of method naming. @peterbourgon any ideas?
This is an experimental PR suggested by @basvanbeek in #946 (comment)
It adds a span name getter function to the opencensus endpoint tracer config.
Other options might worth adding:
See the opencensus ochttp plugin for more.