datadog-cdk-constructs-v2
CDK Construct Library to automatically instrument Python and Node Lambda functions with Datadog using AWS CDK v2
Decision gist · record as of 2026-08-14
Yes. This is a production-stable, actively maintained library (latest release 43 days ago, no known vulnerabilities) that significantly reduces boilerplate for Datadog-instrumented serverless deployments on AWS CDK. Install it if you are already using AWS CDK v2 and want Datadog observability; it saves configuration effort and enforces consistent instrumentation across your Lambda and Fargate workloads. The Apache-2.0 license imposes no restrictions.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or later.
- You must have aws-cdk-lib and constructs installed, and a valid Datadog API key passed via environment variable or CDK parameter.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects, with no copyleft obligations beyond retaining the license notice.
last release 2026-07-02 (43 days) · last repo commit 2026-08-14 · 74 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 267,620 downloads/mo, #8,289 on PyPI
Alternatives
Verify before relying
pip install datadog-cdk-constructs-v2
from datadog_cdk_constructs_v2 import DatadogLambda, DatadogDefaultLayerVersions
import os
datadog = DatadogLambda(
self,
"Datadog",
extension_layer_version=DatadogDefaultLayerVersions.EXTENSION,
api_key=os.getenv("DD_API_KEY"),
)
datadog.add_lambda_functions([my_lambda_function])- Whether the package supports all Lambda runtimes mentioned (Python, Node.js, Java, Go, Ruby, .NET) equally well from the CDK side, or if some have limitations.
- Performance overhead or cold-start impact of the Datadog Lambda layers when applied via this construct.
- Whether ECS Fargate support is production-ready or still in beta relative to Lambda support.
What it is and what it does
This package is an AWS CDK construct library that wraps Datadog's Lambda instrumentation layers and configuration into reusable, declarative CDK components. Instead of manually attaching Datadog Lambda layers, managing API keys, and configuring log subscriptions in your CDK stack, you instantiate a DatadogLambda construct, pass it your Lambda functions, and the construct handles layer installation, tracing setup, and log forwarding automatically.
It supports Lambda functions across multiple runtimes (Python, Node.js, Java, Go, Ruby, .NET) and also provides constructs for ECS Fargate services. The library integrates with AWS Secrets Manager for secure API key storage, supports custom tagging and environment variables, and can automatically enable source code integration if your Datadog GitHub integration is configured. It's designed for teams using AWS CDK v2 who want to add Datadog observability to serverless workloads without boilerplate.
Use it for
- Automatically instrument all Lambda functions in a CDK stack with Datadog tracing and custom metrics in a single construct call.
- Centrally manage Datadog API keys and layer versions across multiple Lambda functions deployed via CDK.
- Enable distributed tracing and log correlation for serverless applications by adding the construct to your stack.
- Set up Datadog log forwarding from CloudWatch log groups without manually creating subscriptions.
- Deploy ECS Fargate services with built-in Datadog monitoring through a dedicated construct.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
This is a production-stable, actively maintained library (latest release 43 days ago, no known vulnerabilities) that significantly reduces boilerplate for Datadog-instrumented serverless deployments on AWS CDK. Install it if you are already using AWS CDK v2 and want Datadog observability; it saves configuration effort and enforces consistent instrumentation across your Lambda and Fargate workloads. The Apache-2.0 license imposes no restrictions.
Install
datadog-cdk-constructs-v2 on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a recent release 43 days ago. Requires aws-cdk-lib, constructs, jsii, and publication as runtime dependencies—all standard CDK ecosystem packages.
Requires Python 3.10 or later. You must have aws-cdk-lib and constructs installed, and a valid Datadog API key passed via environment variable or CDK parameter.
License in practice
Licensed under Apache-2.0 (permissive). You can use, modify, and distribute this package freely in commercial and private projects, with no copyleft obligations beyond retaining the license notice.
Quickstart
pip install datadog-cdk-constructs-v2
from datadog_cdk_constructs_v2 import DatadogLambda, DatadogDefaultLayerVersions
import os
datadog = DatadogLambda(
self,
"Datadog",
extension_layer_version=DatadogDefaultLayerVersions.EXTENSION,
api_key=os.getenv("DD_API_KEY"),
)
datadog.add_lambda_functions([my_lambda_function])
Verify before relying
- Whether the package supports all Lambda runtimes mentioned (Python, Node.js, Java, Go, Ruby, .NET) equally well from the CDK side, or if some have limitations.
- Performance overhead or cold-start impact of the Datadog Lambda layers when applied via this construct.
- Whether ECS Fargate support is production-ready or still in beta relative to Lambda support.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesaws-cdk-libconstructsjsiipublication |
| Maintenance | Actively maintained 43 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 267,620 / month, #8,289 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI ApprovedOperating System :: OS IndependentProgramming Language :: JavaScriptProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Typing :: Typed |
Evidence: datadog_cdk_constructs_v2-4.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “aws cdk datadog lambda instrumentation”
- datadog-cdk-constructs-v2Provides AWS CDK constructs to automatically instrument Lambda…
- cdk-cloudformation-datadog-monitors-monitorProvides an AWS CDK L1 construct for defining and managing Datadog…
- aws-cdk.asset-awscli-v1Bundles AWS CLI v1 as a reusable asset for AWS CDK Lambda Layers,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also cdk-cloudformation-datadog-monitors-monitor · aws-cdk.aws-servicediscovery · cdk-aurora-globaldatabase · aws-cdk.aws-lambda · cdk-events-notify · aws-cdk.aws-ecs · aws-cdk.aws-cloudwatch · safe-init · aws-cdk.aws-sam · ddtrace