-
Notifications
You must be signed in to change notification settings - Fork 438
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 add_link API #1515
Add add_link API #1515
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1515 +/- ##
=======================================
- Coverage 68.9% 68.8% -0.1%
=======================================
Files 137 137
Lines 19799 19844 +45
=======================================
+ Hits 13658 13671 +13
- Misses 6141 6173 +32 ☔ View full report in Codecov by Sentry. |
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.
Looks good for the most part. I would have to look at the commit log but if this Link api was released in a previous version of the opentelemetry
crate that we should have a CHANGELOG entry for the signature change and addition of the with_context
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.
We need to wrap this API with otel_unstable
as it's experimental
Do we need to? The spec is about to get stable soon, so its not worth the effort to hide it under feature-flag now and later undo that. |
Emm shall we wait for the spec PR to merge before we merge this one then? I am mostly worried we merge this and then spec made some changes before stablizing. Not sure how long it usually takes for spec to stablize |
We are still pre 1.0, so its still okay? Or we can hold off from merging for few days as well and see if the spec actually gets stable. |
Yeah, will add the |
Co-authored-by: Harold Dost <github@hdost.com>
The specs is marked as stable now - open-telemetry/opentelemetry-specification#3887. Should be good to review it now. |
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.
one nit otherwise LGTM
Co-authored-by: Zhongyang Wu <zhongyang.wu@outlook.com>
Changes
The API is already supported as experimental in specification:
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.29.0/specification/trace/api.md#add-link
And planned to make stable soon - open-telemetry/opentelemetry-specification#3865. So not added under experimental flag.
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial, user-facing changes