lib/opentelemetry/instrumentation/ruby_kafka/patches/producer.rb in opentelemetry-instrumentation-ruby_kafka-0.19.0 vs lib/opentelemetry/instrumentation/ruby_kafka/patches/producer.rb in opentelemetry-instrumentation-ruby_kafka-0.19.1
- old
+ new
@@ -8,10 +8,10 @@
module Instrumentation
module RubyKafka
module Patches
# The Producer module contains the instrumentation patch the Producer#produce method
module Producer
- def produce(value, key: nil, headers: {}, topic:, partition: nil, partition_key: nil, create_time: Time.now)
+ def produce(value, topic:, key: nil, headers: {}, partition: nil, partition_key: nil, create_time: Time.now)
attributes = {
'messaging.system' => 'kafka',
'messaging.destination' => topic,
'messaging.destination_kind' => 'topic'
}