Skip to content

(aws-lambda-nodejs): Application Signals configuration #36190

@nikovirtala

Description

@nikovirtala

Describe the feature

The NodejsFunction and other Lambda Function constructs currently provide the user an easy way to instrument their code with OpenTelemetry by giving an option to declare the required layerVersion and execWrapper in the adotInstrumentation property. However, it only gives an option to choose from the layers delivered by AWS Distro for OpenTelemetry Lambda, which is not ideal when there are also other options like Application Signals.

Use Case

Users want to enable Application Signals for CloudWatch Application Monitoring on their Lambda functions using the NodejsFunction construct, similar to how they can currently enable AWS Distro for OpenTelemetry Lambda layers.

Proposed Solution

Make Application Signals layers available to all NodejsFunction users as AdotLayerVersion classes, practically abstracting the enablement process of the Application Signals on Lambda to NodejsFunction configuration. This would provide users with more flexibility in choosing their observability instrumentation approach directly through the construct's configuration.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

AWS CDK Library version (aws-cdk-lib)

2.229.0

AWS CDK CLI version

2.1032.0

Environment details (OS name and version, etc.)

macOS 26.1 (25B78)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions