$npx skillfedfor your agent

datadog-cdk-constructs-v2

CDK Construct Library to automatically instrument Python and Node Lambda functions with Datadog using AWS CDK v2

Worth itPyPI MonitoringReleased Jul 2026267.6K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — datadog_cdk_constructs_v2-4.2.0-py3-none-any.whl
v4.2.0 · released 2026-07-02 · Python >=3.10 · 4 runtime deps: aws-cdk-lib, constructs, jsii, publication

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

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.
Same gist for agents: .md · .json

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.

Worth 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

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
4 packages
aws-cdk-libconstructsjsiipublication
MaintenanceActively maintained 43 days since the last release
Last repo commit
First released
Downloads267,620 / month, #8,289 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone 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

Capabilities
aws cdk datadog lambda instrumentationserverless monitoring with datadogcdk construct datadog integrationlambda tracing and metrics datadogaws cdk observabilitydatadog lambda layer automationcdk serverless monitoring
Topics
aws-cdkserverless-monitoringdatadog-integration

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”

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

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