Sha256: bfdb3fa15d9018af6a3826bb447477a62f7b6ea187aa5d08767baf823d60bf67

Contents?: true

Size: 713 Bytes

Versions: 7

Compression:

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

DependencyDetection.defer do
  named :dynamodb

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

  executes do
    NewRelic::Agent.logger.info('Installing DynamoDB instrumentation')

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/dynamodb.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/dynamodb.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/dynamodb.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/instrumentation/dynamodb.rb
newrelic_rpm-9.10.2 lib/new_relic/agent/instrumentation/dynamodb.rb
newrelic_rpm-9.10.1 lib/new_relic/agent/instrumentation/dynamodb.rb
newrelic_rpm-9.10.0 lib/new_relic/agent/instrumentation/dynamodb.rb