opentelemetry-specification
opentelemetry-specification copied to clipboard
Links with invalid SpanContext are recorded by default.
As Links with invalid SpanContext may contain attributes describing the operation (specially useful and occurrent for messaging systems), we still want to collect them, also allowing the user to drop them via a SDK configuration option. Fixes #2176 (in the issue extensive discussion about took place and we came, back in the day, with an initial agreement).
Now, I'm curious about:
- We currently have a
Implementations MAY ignore links with an invalid SpanContext
, and I'm changing it toImplementations SHOULD record links with an invalid SpanContext
, which doesn't sound like a breaking change, but I'd like to hear (practical) opinions. - In similar PRs we also suggest names for the new configuration options - maybe go with
WithRecordInvalidLinks()
/recordInvalidLinks()
perhaps?
Thanks @carlosalberto for getting this going.
We currently have a "Implementations MAY ignore links with an invalid SpanContext", and I'm changing it to "Implementations SHOULD record links with an invalid SpanContext", which doesn't sound like a breaking change, but I'd like to hear (practical) opinions.
I think this (practically) depends on what implementations are currently doing. If all implementations are currently recording links to invalid span contexts, then this change wouldn't be a breaking change. If there is an implementation that drops links to invalid span contexts without good reason, then this change might be considered breaking for that implementation.
I'd suggest:
- Identify if there are any implementations dropping links to invalid span contexts.
- Change those implementations to record links to invalid span contexts.
- Merge this specification change.
@jmacd @trask Applied feedback. Please review.
cc @bogdandrutu
This PR was marked stale due to lack of activity. It will be closed in 7 days.
This PR was marked stale due to lack of activity. It will be closed in 7 days.
This PR was marked stale due to lack of activity. It will be closed in 7 days.