Skip to content

Commit

Permalink
squash: skip incompatible versions
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin committed Jan 7, 2025
1 parent c597ab2 commit f5408aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

describe '#each' do
it 'traces each call' do
skip "#{Rdkafka::VERSION} is not supported" unless instrumentation.installed?

rand_hash = SecureRandom.hex(10)
topic_name = "consumer-patch-trace-#{rand_hash}"
config = { 'bootstrap.servers': "#{host}:#{port}" }
Expand Down Expand Up @@ -112,6 +114,8 @@
end

it 'encodes messages keys depending on input format' do
skip "#{Rdkafka::VERSION} is not supported" unless instrumentation.installed?

rand_hash = SecureRandom.hex(10)
topic_name = "consumer-patch-trace-#{rand_hash}"
config = { 'bootstrap.servers': "#{host}:#{port}" }
Expand Down Expand Up @@ -164,6 +168,8 @@

describe '#each_batch' do
it 'traces each_batch call' do
skip "#{Rdkafka::VERSION} is not supported" unless instrumentation.installed?

rand_hash = SecureRandom.hex(10)
topic_name = "consumer-patch-batch-trace-#{rand_hash}"
config = { 'bootstrap.servers': "#{host}:#{port}" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

describe 'tracing' do
it 'traces sync produce calls' do
skip "#{Rdkafka::VERSION} is not supported" unless instrumentation.installed?
topic_name = 'producer-patch-trace'
config = { 'bootstrap.servers': "#{host}:#{port}" }

Expand Down

0 comments on commit f5408aa

Please sign in to comment.