-
Notifications
You must be signed in to change notification settings - Fork 533
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
refactor(instr-amqplib): use exported strings for attributes #2086
refactor(instr-amqplib): use exported strings for attributes #2086
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #2086 +/- ##
==========================================
- Coverage 90.97% 90.82% -0.16%
==========================================
Files 146 148 +2
Lines 7492 7672 +180
Branches 1502 1537 +35
==========================================
+ Hits 6816 6968 +152
- Misses 676 704 +28
|
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.
Thanks! I left a comment about maybe doing the Attributes and AttributeValue change separate... but I'm not sure if it's necessary as I look at it more. If anything that should maybe be another issue similar to this, where we have a breakdown of issues that need to have deprecated SpanAttributes and SpanAttributeValue replaced with the new Attributes and AttributeValue here in contrib 🤔 It's a breaking change if minimum API version needs to the change, but it's not necessary here so it wouldn't be breaking here.
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.
This look good. I don't think the SpanAttribute change needs to be separate here. On the issue #1778 we discussed maybe not needing the Notes column with the key after all, but it's already here and I don't think it's necessary to do the extra work to remove it. If anything we can remove it when we update semantic conventions, to minimize overhead.
Thanks for the review @JamieDanielson :) I guess the breaking change would happen when
I thought so and it makes sense to remove deprecated object from current instrumentations. I wonder which kind of version bump we should do when the instrumentations update the API/SDK dependencies to next branch |
These are actually in the API package, not semantic convention, but either way I think we're good here.
I wonder this too! I think we may have talked about it briefly during one of the sig meetings, but as we get closer to release, we will have to revisit. |
@david-luna Should this one have also updated the instr-amqplib test files?
|
Indeed. Good catch :) I'll create a new PR for it Thanks! |
Which problem is this PR solving?
Short description of the changes
SemanticAttributes.*
with exported stringsSEMATTRS_*