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.209.6 lib/instana/snapshot/lambda_function.rb
instana-1.209.5 lib/instana/snapshot/lambda_function.rb
instana-1.209.4 lib/instana/snapshot/lambda_function.rb
instana-1.209.3 lib/instana/snapshot/lambda_function.rb
instana-1.209.2 lib/instana/snapshot/lambda_function.rb
instana-1.209.1 lib/instana/snapshot/lambda_function.rb
instana-1.209.0.pre3 lib/instana/snapshot/lambda_function.rb
instana-1.209.0.pre2 lib/instana/snapshot/lambda_function.rb
instana-1.209.0.pre1 lib/instana/snapshot/lambda_function.rb
instana-1.208.0 lib/instana/snapshot/lambda_function.rb
instana-1.207.0 lib/instana/snapshot/lambda_function.rb
instana-1.206.0 lib/instana/snapshot/lambda_function.rb
instana-1.205.0 lib/instana/snapshot/lambda_function.rb
instana-1.204.0 lib/instana/snapshot/lambda_function.rb
instana-1.204.0.pre3 lib/instana/snapshot/lambda_function.rb
instana-1.204.0.pre2 lib/instana/snapshot/lambda_function.rb
instana-1.204.0.pre1 lib/instana/snapshot/lambda_function.rb
instana-1.203.2 lib/instana/snapshot/lambda_function.rb
instana-1.203.1 lib/instana/snapshot/lambda_function.rb
instana-1.203.0 lib/instana/snapshot/lambda_function.rb