Sha256: 813ac60f545f9ffa84872d64bc96fdc1ed72fa692fef6a6a05eaf7d663248383

Contents?: true

Size: 685 Bytes

Versions: 3

Compression:

Stored size: 685 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

DependencyDetection.defer do
  named :aws_sdk_lambda

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

  executes do
    require_relative 'aws_sdk_lambda/instrumentation'

    if use_prepend?
      require_relative 'aws_sdk_lambda/prepend'
      prepend_instrument Aws::Lambda::Client, NewRelic::Agent::Instrumentation::AwsSdkLambda::Prepend
    else
      require_relative 'aws_sdk_lambda/chain'
      chain_instrument NewRelic::Agent::Instrumentation::AwsSdkLambda::Chain
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newrelic_rpm-9.17.0 lib/new_relic/agent/instrumentation/aws_sdk_lambda.rb
newrelic_rpm-9.16.1 lib/new_relic/agent/instrumentation/aws_sdk_lambda.rb
newrelic_rpm-9.16.0 lib/new_relic/agent/instrumentation/aws_sdk_lambda.rb