---
title: Monitoring AWS Lambda Managed Instances
description: Install and configure the Datadog Agent for AWS Lambda Managed Instances.
breadcrumbs: >-
  Docs > Serverless > Serverless Monitoring for AWS Lambda > Monitoring AWS
  Lambda Managed Instances
---

# Monitoring AWS Lambda Managed Instances

{% callout %}
##### Join the Preview!

Datadog Serverless Monitoring for AWS Lambda Managed Instances is in Preview. To send feedback during the Preview, use the **Share Feedback** option on the [Serverless page](https://app.datadoghq.com/serverless/aws/lambda) in Datadog.
{% /callout %}

Datadog provides full visibility into the metrics, logs, and traces emitted by your AWS Lambda Managed Instances. You can monitor your AWS Lambda Managed Instances alongside your other serverless compute services in a single, unified view. This enables you to spot bottlenecks, fix errors, and determine which workloads to refactor to optimize concurrency, whether that means increasing throughput or reducing unnecessary parallel executions.

## Setup{% #setup %}

{% alert level="info" %}

- **Metrics, enhanced metrics, and log collection**: Supported for all runtimes
- **Trace collection**: Supported for Python, Node.js, Java, .NET

{% /alert %}

### Metrics and logs{% #metrics-and-logs %}

To collect standard metrics and logs, set up [Datadog's AWS integration](https://docs.datadoghq.com/integrations/amazon-web-services/).

To collect [enhanced Lambda metrics](https://docs.datadoghq.com/serverless/aws_lambda/metrics?tab=python#enhanced-lambda-metrics), set up the [Datadog Lambda Extension](https://docs.datadoghq.com/serverless/libraries_integrations/extension/).

### Traces{% #traces %}

To collect traces, use Datadog's standard setup for instrumenting AWS Lambda functions. Choose your runtime:

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

## Data collected{% #data-collected %}

Datadog collects the same metrics for AWS Lambda Managed Instances as it does for standard AWS Lambda applications, **excluding** `aws.lambda.enhanced.estimated_cost` and `aws.lambda.enhanced.billed_duration`. These two metrics are not available for AWS Lambda Managed Instances.

See the [list of all metrics collected for AWS Lambda applications](https://docs.datadoghq.com/integrations/amazon-lambda/#data-collected).

## Correlating logs and traces{% #correlating-logs-and-traces %}

To correlate your logs and traces, ensure that you have set `DD_TRACE_ENABLED` and `DD_LOGS_INJECTION`to `true`.

- [Correlating Python Logs and Traces](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/python/)
- [Correlating Node.js Logs and Traces](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/nodejs/)
- [Correlating Java Logs and Traces](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/java/)
- [Correlating .NET Logs and Traces](https://docs.datadoghq.com/tracing/other_telemetry/connect_logs_and_traces/dotnet/)

## Known limitations{% #known-limitations %}

During Preview, the Datadog Lambda Extension and Lambda Libraries only support trace collection for Python, Node.js, Java, and .NET runtimes.

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

- [Monitor AWS Lambda Managed Instances with Datadog](https://www.datadoghq.com/blog/lambda-managed-instances)
