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
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ release.

### Traces

- Links with invalid SpanContext are recorded.
([#3928](https://github.com/open-telemetry/opentelemetry-specification/pull/3928))

### Metrics

### Logs
Expand Down
5 changes: 3 additions & 2 deletions specification/trace/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -805,8 +805,9 @@ 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 containing
`SpanContext` with empty `TraceId` or `SpanId` as long as either the attribute set
carlosalberto marked this conversation as resolved.
Show resolved Hide resolved
or `TraceState` is non-empty.
carlosalberto marked this conversation as resolved.
Show resolved Hide resolved

The Span interface MAY provide:

Expand Down
Loading