Sha256: 4e96b341c440c569ba3f09bf2fb79063ff3fee34b205c27bd93aabe2959e441c

Contents?: true

Size: 664 Bytes

Versions: 1

Compression:

Stored size: 664 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 'aws_sdk_kinesis/instrumentation'
require_relative 'aws_sdk_kinesis/chain'
require_relative 'aws_sdk_kinesis/prepend'

DependencyDetection.defer do
  named :aws_sdk_kinesis

  depends_on do
    defined?(Aws::Kinesis::Client)
  end
  executes do
    if use_prepend?
      prepend_instrument Aws::Kinesis::Client, NewRelic::Agent::Instrumentation::Kinesis::Prepend
    else
      chain_instrument NewRelic::Agent::Instrumentation::Kinesis::Chain
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
newrelic_rpm-9.17.0 lib/new_relic/agent/instrumentation/aws_sdk_kinesis.rb