Interface AdotInstrumentationConfig

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AdotInstrumentationConfig.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-22T02:24:03.804Z") @Stability(Stable) public interface AdotInstrumentationConfig extends software.amazon.jsii.JsiiSerializable
Properties for an ADOT instrumentation in Lambda.

Example:

 import software.amazon.awscdk.services.lambda.AdotLambdaExecWrapper;
 import software.amazon.awscdk.services.lambda.AdotLayerVersion;
 import software.amazon.awscdk.services.lambda.AdotLambdaLayerJavaScriptSdkVersion;
 Function fn = Function.Builder.create(this, "MyFunction")
         .runtime(Runtime.NODEJS_18_X)
         .handler("index.handler")
         .code(Code.fromInline("exports.handler = function(event, ctx, cb) { return cb(null, \"hi\"); }"))
         .adotInstrumentation(AdotInstrumentationConfig.builder()
                 .layerVersion(AdotLayerVersion.fromJavaScriptSdkLayerVersion(AdotLambdaLayerJavaScriptSdkVersion.LATEST))
                 .execWrapper(AdotLambdaExecWrapper.REGULAR_HANDLER)
                 .build())
         .build();