-
Notifications
You must be signed in to change notification settings - Fork 805
refactor: don't use deprecated SpanAttributes in confluent kafka
#3492
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: don't use deprecated SpanAttributes in confluent kafka
#3492
Conversation
SpanAttributes in kafkaSpanAttributes in confluent kafka
fa39299 to
92ec06e
Compare
| span.set_attribute(SpanAttributes.MESSAGING_DESTINATION, topic) | ||
|
|
||
| span.set_attribute(MESSAGING_SYSTEM, "kafka") | ||
| span.set_attribute(MESSAGING_DESTINATION_NAME, topic) |
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 task is about updating the import, not changing the semantic conventions so the attributes set should have the same value but imported from another path. If the attribute is not available we must keep using the one from SpanAttributes until we move to a newer semantic convention.
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.
Got it! take back deleted attribute value 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.
Yeah but still this changes messaging.destination to messaging.destination.name which we don't want to do.
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.
OK, revert it.
92ec06e to
2f549fb
Compare
| span.set_attribute(SpanAttributes.MESSAGING_DESTINATION, topic) | ||
|
|
||
| if partition is not None: | ||
| span.set_attribute(SpanAttributes.MESSAGING_KAFKA_PARTITION, partition) |
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.
You changed the attribute name here, it's not the only one and I won't add a comment for every one you changed.
Description
Stop using
SpanAttributesin kafka.Part of #3475
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Exist test
Does This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.