Sha256: 737e8d02d62ea76bc44af847bfda8f2ecd3f2ab5258fbdefb8929012c41f0575
Contents?: true
Size: 841 Bytes
Versions: 2
Compression:
Stored size: 841 Bytes
Contents
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require_relative 'ruby_kafka/instrumentation' require_relative 'ruby_kafka/chain' require_relative 'ruby_kafka/prepend' DependencyDetection.defer do named :'ruby_kafka' depends_on do defined?(Kafka) end executes do if use_prepend? prepend_instrument Kafka::Producer, NewRelic::Agent::Instrumentation::RubyKafkaProducer::Prepend prepend_instrument Kafka::Consumer, NewRelic::Agent::Instrumentation::RubyKafkaConsumer::Prepend prepend_instrument Kafka::Client, NewRelic::Agent::Instrumentation::RubyKafkaClient::Prepend else chain_instrument NewRelic::Agent::Instrumentation::RubyKafka::Chain end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-9.16.0 | lib/new_relic/agent/instrumentation/ruby_kafka.rb |
newrelic_rpm-9.15.0 | lib/new_relic/agent/instrumentation/ruby_kafka.rb |