[Rdkafka] How to use the instrumentation with forks of the original gem that have a different gem name? #725
-
Hi all, The Karafka ecosystem uses the Rdkafka gem under the hood, but a fork of it with patches that are not yet upstreamed to the main rdkafka repo. This happens because the way to check the rdkafka version available is done through the My question is then: What would be the best way to use the instrumentation with this fork?
compatible do
Gem::Version.new(::Rdkafka::VERSION) >= MINIMUM_VERSION
end
Thanks for your answers! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@piotaixr Please open a PR to use the |
Beta Was this translation helpful? Give feedback.
@piotaixr Please open a PR to use the
Rdkafka::VERSION
constant. It looks like we missed this when migrating away from usingGem.loaded_specs
.https://github.com/open-telemetry/opentelemetry-ruby-contrib/blob/main/instrumentation/rdkafka/lib/opentelemetry/instrumentation/rdkafka/instrumentation.rb#L15