-
Notifications
You must be signed in to change notification settings - Fork 178
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
fix: suppress header access with symbol key deprecation warning in Racecar Instrumentation #1040
Conversation
Use the text_map_getter because accessing kafka message headers with a symbol key is now deprecated in rdkafka.
Hi @ewhorton! Thanks for your submission! Would you mind signing the CLA? We can't accept your submission until you do. |
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. |
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') |
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 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 ?
Line 36 in b26b765
subscriber = ProcessMessageSubscriber.new |
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