Sha256: 6b74a6287aa68e82abc57c159b5102e2c16145507cf4b837669c1a06475bedce

Contents?: true

Size: 459 Bytes

Versions: 40

Compression:

Stored size: 459 Bytes

Contents

# (c) Copyright IBM Corp. 2021
# (c) Copyright Instana Inc. 2021

module Instana
  module Activators
    class AwsSdkLambda < Activator
      def can_instrument?
        defined?(::Aws::Lambda::Client) && ::Aws::Lambda::Client.respond_to?(:add_plugin)
      end

      def instrument
        require 'instana/instrumentation/aws_sdk_lambda'

        ::Aws::Lambda::Client.add_plugin(Instana::Instrumentation::Lambda)

        true
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
instana-1.217.1 lib/instana/activators/aws_sdk_lambda.rb
instana-1.217.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.216.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.215.1 lib/instana/activators/aws_sdk_lambda.rb
instana-1.215.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.214.4 lib/instana/activators/aws_sdk_lambda.rb
instana-1.214.3 lib/instana/activators/aws_sdk_lambda.rb
instana-1.214.2 lib/instana/activators/aws_sdk_lambda.rb
instana-1.214.1 lib/instana/activators/aws_sdk_lambda.rb
instana-1.214.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.213.3 lib/instana/activators/aws_sdk_lambda.rb
instana-1.213.2 lib/instana/activators/aws_sdk_lambda.rb
instana-1.213.1 lib/instana/activators/aws_sdk_lambda.rb
instana-1.213.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.212.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.211.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.210.1 lib/instana/activators/aws_sdk_lambda.rb
instana-1.210.0 lib/instana/activators/aws_sdk_lambda.rb
instana-1.209.8 lib/instana/activators/aws_sdk_lambda.rb
instana-1.209.7 lib/instana/activators/aws_sdk_lambda.rb