Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhengkezhou1
Copy link

@zhengkezhou1 zhengkezhou1 commented May 10, 2025

Description

Stop using SpanAttributes in 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?

  • No.

Checklist:

See contributing.md for styleguide, changelog guidelines, and more.

  • Followed the style guidelines of this project
  • Changelogs have been updated
  • Unit tests have been added
  • Documentation has been updated

@zhengkezhou1 zhengkezhou1 changed the title refactor: don't use deprecated SpanAttributes in kafka refactor: don't use deprecated SpanAttributes in confluent kafka May 10, 2025
@zhengkezhou1 zhengkezhou1 force-pushed the issues-3475-confluent-kafka branch from fa39299 to 92ec06e Compare May 10, 2025 16:18
span.set_attribute(SpanAttributes.MESSAGING_DESTINATION, topic)

span.set_attribute(MESSAGING_SYSTEM, "kafka")
span.set_attribute(MESSAGING_DESTINATION_NAME, topic)
Copy link
Contributor

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.

Copy link
Author

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.

Copy link
Contributor

@xrmx xrmx May 15, 2025

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.

@zhengkezhou1 zhengkezhou1 force-pushed the issues-3475-confluent-kafka branch from 92ec06e to 2f549fb Compare May 10, 2025 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants