Sha256: 0486dace0e82aff8aef076c0f01f3c73120694e959e0a72c5d93b36f1ee86b6f

Contents?: true

Size: 441 Bytes

Versions: 44

Compression:

Stored size: 441 Bytes

Contents

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

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

      def instrument
        require 'instana/instrumentation/aws_sdk_sns'

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

        true
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
instana-1.202.0 lib/instana/activators/aws_sdk_sns.rb
instana-1.201.0 lib/instana/activators/aws_sdk_sns.rb
instana-1.201.0.pre1 lib/instana/activators/aws_sdk_sns.rb
instana-1.200.0 lib/instana/activators/aws_sdk_sns.rb