Skip to content
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

fix: suppress header access with symbol key deprecation warning in Racecar Instrumentation #1040

Conversation

ewhorton
Copy link
Contributor

Fix the Rdkafka deprecation warning for header access with symbol key in the Racecar instrumentation.

This copies the approach taken for the Rdkafka instrumentation here.

Both of these can be cleaned up if/when support for rdkafka 0.12.0 is removed.

@chrisholmes

Use the text_map_getter because accessing kafka message headers with
a symbol key is now deprecated in rdkafka.
Copy link

linux-foundation-easycla bot commented Jun 24, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: ewhorton / name: Ewan Whorton (0a7fe6f)
  • ✅ login: arielvalentin / name: Ariel Valentin (9539b7c)

@kaylareopelle
Copy link
Contributor

Hi @ewhorton! Thanks for your submission! Would you mind signing the CLA? We can't accept your submission until you do.

@ewhorton
Copy link
Contributor Author

Thanks @kaylareopelle, I'm just working with my employer to get this signed. They should be able to approve it at some point this week.

@ewhorton
Copy link
Contributor Author

ewhorton commented Jul 2, 2024

Hi again @kaylareopelle, sorry for the delay, we have just been able to get this signed now 🙂

@@ -4,14 +4,21 @@ module OpenTelemetry
module Instrumentation
# This class contains the ASN subsciber that instruments message processing
class ProcessMessageSubscriber
GETTER = if Gem::Version.new(::Rdkafka::VERSION) >= Gem::Version.new('0.13.0')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to see this evaluation occur in install process since we do other gem version compatibility checks but 🤷🏼‍♂️ it may make it more difficult to understand. WDYT @kaylareopelle ?

@kaylareopelle kaylareopelle merged commit 08f11ae into open-telemetry:main Jul 3, 2024
54 checks passed
@github-actions github-actions bot mentioned this pull request Jul 2, 2024
@ewhorton ewhorton deleted the suppress-rdkafka-deprecation-warning branch July 3, 2024 16:09
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.

3 participants