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

Links with invalid SpanContext are recorded. #3928

Merged
merged 10 commits into from
May 7, 2024
4 changes: 2 additions & 2 deletions specification/trace/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -807,8 +807,8 @@ The API MUST provide:
arguments. This MAY be called `AddLink`. This API takes the `SpanContext` of
the `Span` to link to and optional `Attributes`, either as individual
parameters or as an immutable object encapsulating them, whichever is most
appropriate for the language. Implementations MAY ignore links with an
[invalid](#isvalid) `SpanContext`.
appropriate for the language. Implementations SHOULD record links with an
[invalid](#isvalid) `SpanContext` as well.
carlosalberto marked this conversation as resolved.
Show resolved Hide resolved

The Span interface MAY provide:

Expand Down
4 changes: 4 additions & 0 deletions specification/trace/sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ Note: Implementation-wise, this could mean that `Tracer` instances have a
reference to their `TracerProvider` and access configuration only via this
reference.

A boolean parameter indicating whether `Links` with invalid `SpanContext`
are recorded or not SHOULD be exposed as part of the configuration,
with true as its default value.

carlosalberto marked this conversation as resolved.
Show resolved Hide resolved
### Shutdown

This method provides a way for provider to do any cleanup required.
Expand Down
Loading