Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions instrumentation/rdkafka/Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
#
# SPDX-License-Identifier: Apache-2.0

appraise 'rdkafka-0.12.x' do
gem 'rdkafka', '~> 0.12.0'
end

appraise 'rdkafka-0.13.x' do
gem 'rdkafka', '~> 0.13.0'
%w[0.12.0 0.13.0 0.14.0].each do |version|
appraise "rdkafka-#{version}" do
gem 'rdkafka', "~> #{version}"
end
end

appraise 'rdkafka-latest' do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ module Instrumentation
module Rdkafka
# The Instrumentation class contains logic to detect and install the Rdkafka instrumentation
class Instrumentation < OpenTelemetry::Instrumentation::Base
MINIMUM_VERSION = Gem::Version.new('0.10.0')

compatible do
Gem::Version.new(::Rdkafka::VERSION) >= MINIMUM_VERSION
gem_version = Gem::Version.new(::Rdkafka::VERSION)
Gem::Requirement.new('>= 0.10.0', '< 0.15.0').satisfied_by?(gem_version)
end

install do |_config|
Expand Down
Loading