-
Notifications
You must be signed in to change notification settings - Fork 1.7k
semconv: mark the package as deprecated #13012
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
semconv: mark the package as deprecated #13012
Conversation
This package will be removed in the future. Signed-off-by: Alex Boten <[email protected]>
Signed-off-by: Alex Boten <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13012 +/- ##
=======================================
Coverage 91.58% 91.58%
=======================================
Files 505 505
Lines 28319 28319
=======================================
Hits 25937 25937
Misses 1873 1873
Partials 509 509 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Please explain how can we use that in the collector pdata world where the otel attributes (and KeyValues, etc.) are incompatible
@bogdandrutu sure, i created the following PRs to update the core/contrib repos to use the otelgo semconv package:
It seemed to work ok. See the comment in the original PR:
I ran some benchmarks of instantiating the service's Resource using the old semconv and the new ones to validate that using the new semconv wouldn't have an impact on allocations:
Is there a specific aspect of pdata using the otel go's semconv that you're thinking about? |
Are we concerned about I understand there is no performance problem, it is just the semantics and how code looks like that concerns me. |
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.
LGTM. I think the ergonomics suffer, but I think it is fine and that we can add the helpers if necessary.
If we don't do this we need to have a plan forward on maintaining semconv, we have been inconsistent in keeping it up to date.
It's also probably good to do this in terms of the binary size (historically I have heard complaints related to the amount of strings that our binaries have because of semconv)
Is this a release blocker ? |
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.
I agree with the approach of using otel-go instead of updating this package to be generated via weaver. If the ergonomics of string()
gets too annoying we can add new functions to pdata to improve the experience.
It doesn't have to block the release i don't think. We don't need to mark the semconv package as deprecated in this release |
Looks like other are ok with the downgraded usability experience, I am fine to not block this.
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.
LGTM
#13065 removes the associated workflow |
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Removes workflow. It is broken and we will not use it anymore after #13012
This package will be removed in the future, use go.opentelemetry.io/otel/semconv instead