---
title: Instrument AWS Lambda applications
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Serverless > Serverless Monitoring for AWS Lambda > Instrument AWS
  Lambda applications
---

# Instrument AWS Lambda applications

## Overview{% #overview %}

Instrument your AWS Lambda applications with a Datadog Lambda Extension to collect traces, enhanced metrics, and custom metrics. The Datadog Lambda Extension is analogous to using the Datadog Agent and Datadog tracing libraries for host-based infrastructure and applications.

{% image
   source="https://datadog-docs.imgix.net/images/serverless/serverless_tracing_installation_instructions.916e542d516b6e0e19d5f1dcf45dc027.png?auto=format"
   alt="A diagram that shows how Datadog receives telemetry from your instrumented AWS Lambda application. Your Lambda application, instrumented with a Datadog Lambda Library, sends logs, traces, enhanced metrics, and custom metrics to the Datadog Lambda Extension, which then pushes this data to Datadog." /%}

## Quick start{% #quick-start %}

{% callout %}
##### Agentically add the Datadog to your Lambda Functions.

Agentic onboarding for Datadog Serverless is in Preview. Use your favorite AI coding tool such as Cursor or Claude to bulk-add Datadog monitoring to your Lambda functions.

[Request Access](https://www.datadoghq.com/product-preview/agentic-onboarding-for-serverless-applications/)
{% /callout %}

To get started, [sign up for a Datadog account](https://app.datadoghq.com/signup/) if you don't already have one. Then, follow the [in-app installation flow in Fleet Automation](https://app.datadoghq.com/fleet/install-agent/latest?platform=lambda) for AWS Lambda to instrument your Lambda functions. This quick-start configuration enables your functions to send real-time metrics, logs, and traces to Datadog.

A sample application is [available on GitHub](https://github.com/DataDog/serverless-sample-app) with instructions on how to deploy with multiple runtimes and infrastructure-as-code tools.

The quick start process configures your Lambda functions on the fly. To instrument Lambda functions permanently, see the detailed instructions in the next section.

## Instrumentation instructions{% #instrumentation-instructions %}

- [Python](https://docs.datadoghq.com/serverless/installation/python/)
- [Node.js](https://docs.datadoghq.com/serverless/installation/nodejs/)
- [Ruby](https://docs.datadoghq.com/serverless/installation/ruby/)
- [Java](https://docs.datadoghq.com/serverless/installation/java/)
- [go](https://docs.datadoghq.com/serverless/installation/go/)
- [.NET](https://docs.datadoghq.com/serverless/installation/dotnet/)

## Advanced configurations{% #advanced-configurations %}

After you're done with instrumentation and you've set up telemetry collection, you can use [Configure Serverless Monitoring for AWS Lambda](https://docs.datadoghq.com/serverless/aws_lambda/configuration/) to:

- connect your metrics, traces, and logs using tags
- collect telemetry from AWS resources such as API Gateway, AppSync, and Step Functions
- capture the request and response payloads for individual Lambda invocations
- link errors of your Lambda functions to your source code
- filter or scrub sensitive information from logs or traces

## Further Reading{% #further-reading %}

- [Configure Serverless Monitoring](https://docs.datadoghq.com/serverless/configuration/)
- [AWS Lambda Integration](https://docs.datadoghq.com/integrations/amazon_lambda/)
