Add a span name getter to opencensus endpoint options#948
Merged
peterbourgon merged 8 commits intogo-kit:masterfrom Feb 17, 2020
Merged
Add a span name getter to opencensus endpoint options#948peterbourgon merged 8 commits intogo-kit:masterfrom
peterbourgon merged 8 commits intogo-kit:masterfrom
Conversation
sagikazarmark
commented
Jan 23, 2020
Contributor
Author
|
What are your thoughts about this? Is this what you had in mind? |
Member
f972dce to
e860742
Compare
Contributor
Author
|
@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. |
Member
|
We can do the split... we can also say that if a returned name is empty on a call to |
Contributor
Author
|
Updated the PR accordingly. If you have any ideas for better naming, let me know. |
c999092 to
b27801a
Compare
basvanbeek
reviewed
Feb 1, 2020
basvanbeek
approved these changes
Feb 1, 2020
Member
There was a problem hiding this comment.
Logic looks good to me with one nit as shown above. Also unsure of method naming. @peterbourgon any ideas?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.