interface AdotInstrumentationConfig
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Lambda.AdotInstrumentationConfig |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslambda#AdotInstrumentationConfig |
![]() | software.amazon.awscdk.services.lambda.AdotInstrumentationConfig |
![]() | aws_cdk.aws_lambda.AdotInstrumentationConfig |
![]() | aws-cdk-lib » aws_lambda » AdotInstrumentationConfig |
Properties for an ADOT instrumentation in Lambda.
Example
import {
AdotLambdaExecWrapper,
AdotLayerVersion,
AdotLambdaLayerJavaScriptSdkVersion,
} from 'aws-cdk-lib/aws-lambda';
const fn = new lambda.Function(this, 'MyFunction', {
runtime: lambda.Runtime.NODEJS_18_X,
handler: 'index.handler',
code: lambda.Code.fromInline('exports.handler = function(event, ctx, cb) { return cb(null, "hi"); }'),
adotInstrumentation: {
layerVersion: AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.LATEST),
execWrapper: AdotLambdaExecWrapper.REGULAR_HANDLER,
},
});
Properties
Name | Type | Description |
---|---|---|
exec | Adot | 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. |
layer | Adot | The ADOT Lambda layer. |
execWrapper
Type:
Adot
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.
layerVersion
Type:
Adot
The ADOT Lambda layer.