Skip to content
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

Trace API: Update mentions of SpanContext as parent. #1023

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions specification/trace/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -737,9 +737,10 @@ is one important exception to this general rule, and that is related to propagat
The following cases must be considered when a new Span is requested to be created, especially in relation to the
requested parent SpanContext:

* A valid `SpanContext` is specified as the parent of the new `Span`: The API MUST treat this parent context as the
context for the newly created `Span`. This means that a `SpanContext` that has been provided by a configured `Propagator`
will be propagated through to any child span, but that no new `SpanContext`s will be created.
* No valid `SpanContext` is specified as the parent of the new `Span`: The API MUST create an non-valid
(both SpanID and TradeID are equivalent to being all zeros) `Span` for use
by the API caller. This means that both the `TraceID` and the `SpanID` should be invalid.
* A `Context` containing a valid `SpanContext` (within a Propagation Span) is specified as the parent of the new `Span`:
Oberon00 marked this conversation as resolved.
Show resolved Hide resolved
The API MUST treat this parent context as the context for the newly created `Span`.
This means that a `SpanContext` that has been provided by a configured `Propagator`
will be propagated through to any child span, but that no new `SpanContext`s will be created.
* A `Context` containing no valid `SpanContext` (within a Propagation Span) is specified as the parent of the new `Span`:
The API MUST create an non-valid (both SpanID and TradeID are equivalent to being all zeros) `Span` for use
by the API caller. This means that both the `TraceID` and the `SpanID` should be invalid.
Oberon00 marked this conversation as resolved.
Show resolved Hide resolved