Sha256: a3e48f1d576b847a2f35b326b032c9aad66914c6c4e1942ee23881b63aa502f2

Contents?: true

Size: 698 Bytes

Versions: 4

Compression:

Stored size: 698 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_sqs/instrumentation'
require_relative 'aws_sqs/chain'
require_relative 'aws_sqs/prepend'

DependencyDetection.defer do
  named :aws_sqs

  depends_on do
    defined?(Aws::SQS::Client)
  end

  executes do
    NewRelic::Agent.logger.info('Installing aws-sdk-sqs instrumentation')

    if use_prepend?
      prepend_instrument Aws::SQS::Client, NewRelic::Agent::Instrumentation::AwsSqs::Prepend
    else
      chain_instrument NewRelic::Agent::Instrumentation::AwsSqs::Chain
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/aws_sqs.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/aws_sqs.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/aws_sqs.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/instrumentation/aws_sqs.rb