-
Notifications
You must be signed in to change notification settings - Fork 887
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
New spanids should always be created for server spans. #367
Closed
toumorokoshi
wants to merge
1
commit into
open-telemetry:master
from
toumorokoshi:feature/clarify-server-span-creation
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
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.
As this will primarily affect users of Zipkin backend, we should get opinions from its maintainers. A more compatible approach would be along the lines of "SDKs should support an opt-in configuration to allow sharing of client and server span IDs. When not opted-in, the SDK should create a new span ID when creating a child of a remote parent".
Also notice "a child of a remote parent" wording, which is more general than "server spans".
cc @adriancole (not sure how to mention all maintainers)
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.
Thank you! I wasn't sure about the right way to get them involved. Thanks.
Good not on the wording, will fix depending on how that conversation goes.
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.
I think Zipkin added support to the backend to support different Span id between client and server.
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.
Agreed with @yurishkuro.
As a precursor to enabling Zipkin, we may need to allow spans to be created with either a user-provided
SpanContext
or a split trace ID / span ID (i.e., set the trace ID as normal but use a provided span ID, or vice versa).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.
I think it's fine to change this to require (or "should") and opt-in configuration. I feel like it would be best to get weigh-in from a zipkin maintainer, but if I don't hear back in a day or so I'll change my PR.
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.
@yurishkuro @toumorokoshi @iredelmeier I think here we should follow what the w3c standard says which is to create a new spanID.
I would not add a requirement right now to the SDK to support the opt-in mode unless someone asks for it, as I mentioned already Zipkin made the change to support a different span ID for the server more than 1y ago, so I am not sure we need to support that behavior at this point.