Class: AWSCDK::Lambda::AdotInstrumentationConfig

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/adot_instrumentation_config.rb

Overview

Properties for an ADOT instrumentation in Lambda.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(exec_wrapper:, layer_version:) ⇒ AdotInstrumentationConfig

Returns a new instance of AdotInstrumentationConfig.

Parameters:



9
10
11
12
13
14
# File 'lambda/adot_instrumentation_config.rb', line 9

def initialize(exec_wrapper:, layer_version:)
  @exec_wrapper = exec_wrapper
  Jsii::Type.check_type(@exec_wrapper, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLkFkb3RMYW1iZGFFeGVjV3JhcHBlciJ9")), "execWrapper")
  @layer_version = layer_version
  Jsii::Type.check_type(@layer_version, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLkFkb3RMYXllclZlcnNpb24ifQ==")), "layerVersion")
end

Instance Attribute Details

#exec_wrapperAWSCDK::Lambda::AdotLambdaExecWrapper (readonly)

The startup script to run, see ADOT documentation to pick the right script for your use case: https://aws-otel.github.io/docs/getting-started/lambda.



19
20
21
# File 'lambda/adot_instrumentation_config.rb', line 19

def exec_wrapper
  @exec_wrapper
end

#layer_versionAWSCDK::Lambda::AdotLayerVersion (readonly)

The ADOT Lambda layer.



23
24
25
# File 'lambda/adot_instrumentation_config.rb', line 23

def layer_version
  @layer_version
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'lambda/adot_instrumentation_config.rb', line 25

def self.jsii_properties
  {
    :exec_wrapper => "execWrapper",
    :layer_version => "layerVersion",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'lambda/adot_instrumentation_config.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "execWrapper" => @exec_wrapper,
    "layerVersion" => @layer_version,
  })
  result.compact
end