-
Notifications
You must be signed in to change notification settings - Fork 893
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
Add a new AddLink() operation to Span. #3678
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few nits, otherwise lgtm
Hey @open-telemetry/specs-approvers @open-telemetry/go-approvers I've updated this PR to mention SIGs can alternatively implement this operation using On a related note, specifically for the |
Given that the Event specific information and attributes (name and timestamp) could be put as attributes on the resulting link, however, I think we gain some flexibility (and don't loose any critical functionality) by not leaving that unspecified and don't put any related requirements into the spec. |
That could be interesting indeed. Later we could 'promote' them to be actual proto fields if/as needed. |
Does this discussion about link addition via AddAvent() need to happen in this PR? It seems this PR is about the ability to add links after span creation using the AddLink() operation. I am not sure why we need to have these 2 changes in one PR. |
Also from the Spec call, regarding a) Drop Personally I'd go with a) for simplicity and unblocking reasons - we could add additional semantics later on, etc. |
Discussion in the Spec SIG today, asking why we may need to know the timestamp or link-name to distinguish links created at start time vs after start. Here is a discussion about how samplers can be extended to record spans based on links that happen after-the-fact. #2918 |
I think late links should be marked also in OTLP. IMHO it can be considered a semantic difference. |
As per the feedback made on the last Spec call (last week), we will be adding this operation without the |
Co-authored-by: Liudmila Molkova <[email protected]>
Co-authored-by: Liudmila Molkova <[email protected]>
@MrAlias A last look perhaps? |
Co-authored-by: Joshua MacDonald <[email protected]>
Merging this one as we have released 1.26, and thus have time to discuss details or adjustments till we release 1.27.0 (in November) |
Exciting! Is there a tracking issue for the JS implementation already? 👀 |
Fixes open-telemetry#454 Related to open-telemetry#3337 As the Messaging SIG merged its last OTEP 222, we will be adding operations that require Links after Span creation, taking a direct route with `AddLink()`, albeit without any of the new members suggested in open-telemetry#3337, e.g. `timestamp` (to be discussed in a separate issue). ``` AddLink(spanContext, attributes /* optional */) ```
Fixes #454
Related to #3337
(Updated on Sep 18th based on feedback) As the Messaging SIG merged its last OTEP 222, we will be adding operations that require Links after Span creation, taking a direct route with
AddLink()
, albeit without any of the new members suggested in #3337, e.g.timestamp
(to be discussed in a separate issue).cc @open-telemetry/proto-go-maintainers @open-telemetry/cpp-maintainers