-
Notifications
You must be signed in to change notification settings - Fork 897
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
SpanContext.IsRemote is false on remote children #538
SpanContext.IsRemote is false on remote children #538
Conversation
The IsRemote flag should be false on children of remote spans, as the span itself was created locally.
e20ce29
to
53d4dbf
Compare
specification/api-tracing.md
Outdated
@@ -178,7 +178,7 @@ the same trace. | |||
TraceID and a non-zero SpanID. | |||
|
|||
`IsRemote` is a boolean flag which returns true if the SpanContext was propagated | |||
from a remote parent. | |||
from a remote parent. A child of a remote span should have IsRemote set to false. |
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.
from a remote parent. A child of a remote span should have IsRemote set to false. | |
from a remote parent. | |
When creating children from remote spans, their IsRemote flag MUST be set to false. |
Otherwise one could interpret this as "The child span's IsRemote flag must always be false if the parent used to be remote, even after the child was propagated.".
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.
good point, thank you!
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.
Why only "from remote spans"? I think this part is redundant. Of course when creating children from local spans, their IsRemote flag MUST also be false.
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.
Actually, what about spans that are no children at all, but root spans? Of course their IsRemote flag MUST also be false. I think we should try to find a better way to phrase this.
Otherwise one could interpret this as "The child span's IsRemote flag must always be false if the parent used to be remote, even after the child was propagated.". Co-Authored-By: Armin Ruech <armin.ruech@gmail.com>
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.
See #538 (comment)
* SpanContext.IsRemote is false on remote children The IsRemote flag should be false on children of remote spans, as the span itself was created locally. * Update specification/api-tracing.md Otherwise one could interpret this as "The child span's IsRemote flag must always be false if the parent used to be remote, even after the child was propagated.". Co-Authored-By: Armin Ruech <armin.ruech@gmail.com> Co-authored-by: Armin Ruech <armin.ruech@gmail.com>
The IsRemote flag should be false on children of remote spans,
as the span itself was created locally.
Fixes #523