Define Propagation-only Span to simplify active Span logic in Context.#994
Merged
bogdandrutu merged 9 commits intoopen-telemetry:masterfrom Sep 24, 2020
Merged
Conversation
Oberon00
reviewed
Sep 23, 2020
Oberon00
reviewed
Sep 23, 2020
Oberon00
reviewed
Sep 23, 2020
Oberon00
reviewed
Sep 23, 2020
bogdandrutu
reviewed
Sep 23, 2020
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
Contributor
Author
|
@Oberon00 @bogdandrutu @mwear Feedback applied. Please review ;) |
yurishkuro
approved these changes
Sep 24, 2020
jmacd
approved these changes
Sep 24, 2020
Oberon00
reviewed
Sep 24, 2020
Oberon00
reviewed
Sep 24, 2020
Oberon00
approved these changes
Sep 24, 2020
Member
Oberon00
left a comment
There was a problem hiding this comment.
The "Note: MUST" thing should be cleared up, but approving in advance.
anuraaga
reviewed
Sep 24, 2020
Contributor
Author
|
Renamed to |
Oberon00
reviewed
Sep 24, 2020
| as a `Span` in operations such as in-process `Span` propagation. | ||
|
|
||
| If a new type is required for supporting this operation, it SHOULD be named `PropagatorOnlySpan`. | ||
| If a new type is required for supporting this operation, it SHOULD be named `PropagatedSpan`. |
Member
There was a problem hiding this comment.
Please decide between "Propagated Span" and "PropagatedSpan"
Contributor
Author
There was a problem hiding this comment.
Propagated Span is a concept, PropagatedSpan is the name (as Ruby does not need to expose it).
Member
There was a problem hiding this comment.
I would think it's cleaner if we named the concepted PropagatedSpan too, but this is only an nipick anyway (I approved the PR)
anuraaga
approved these changes
Sep 24, 2020
bogdandrutu
approved these changes
Sep 24, 2020
This was referenced Oct 1, 2020
This was referenced Oct 9, 2020
tsloughter
added a commit
to tsloughter/opentelemetry-specification
that referenced
this pull request
Oct 21, 2020
… Context. (open-telemetry#994)" This reverts commit d14c9b7.
carlosalberto
added a commit
to carlosalberto/opentelemetry-specification
that referenced
this pull request
Oct 31, 2024
open-telemetry#994) * Define DefaultSpan to simplify active Span in Context. * Update CHANGELOG. * Update specification/trace/api.md Co-authored-by: Christian Neumüller <christian+github@neumueller.me> * Update specification/trace/api.md Co-authored-by: Christian Neumüller <christian+github@neumueller.me> * Apply feedback. * Specify the SDK must not override it. * Update CHANGELOG. * Rename to PropagatedSpan. * More feedback. Co-authored-by: Christian Neumüller <christian+github@neumueller.me>
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.
Fixes #949
Changes
Define the notion of a
PropagatedSpan, which wraps aSpanContext, and can be leveraged to simplify the activeSpanlogic when detecting the parentSpanin a givenContext(so we don't have to store aSpanand aSpanContextinContext).(Observe I tried to keep it as simple as possible in order to expedite this PR as much as possible ;) )