Sha256: 5ed1b43de0543aa3baad9db7f06cbd2c87fed1126aad4e932f21b9e552a42a71

Contents?: true

Size: 623 Bytes

Versions: 4

Compression:

Stored size: 623 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
    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.17.0 lib/new_relic/agent/instrumentation/aws_sqs.rb
newrelic_rpm-9.16.1 lib/new_relic/agent/instrumentation/aws_sqs.rb
newrelic_rpm-9.16.0 lib/new_relic/agent/instrumentation/aws_sqs.rb
newrelic_rpm-9.15.0 lib/new_relic/agent/instrumentation/aws_sqs.rb