Sha256: ddc55078626521ce43532d49eb5695ac12bd12c95da93d2cc498f08e5e3a73d5

Contents?: true

Size: 610 Bytes

Versions: 54

Compression:

Stored size: 610 Bytes

Contents

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

module Instana
  module Snapshot
    # @since 1.198.0
    class LambdaFunction
      ID = "com.instana.plugin.aws.lambda".freeze

      def entity_id
        Thread.current[:instana_function_arn]
      end

      def data
        {}
      end

      def snapshot
        {
          name: ID,
          entityId: entity_id,
          data: data
        }
      end

      def source
        {
          hl: true,
          cp: "aws",
          e: entity_id
        }
      end

      def host_name
        entity_id
      end
    end
  end
end

Version data entries

54 entries across 54 versions & 1 rubygems

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