---
title: "AWS Lambda Tracing"
description: "Trace AWS Lambda invocations with Judgment."
sidebar:
  label: "AWS Lambda"
seo:
  title: "AWS Lambda Tracing with Judgment | Integration Docs"
  description: "Trace AWS Lambda spans with Judgment to connect application behavior to production AI agent monitoring and evaluation."
---

AWS Lambda tracing uses the standard OpenTelemetry AWS Lambda instrumentation
and routes invocation spans through Judgment.

{/* @test-flow
  id: tracing-task-aws-lambda
  lang: python
  env: JUDGMENT_API_KEY, JUDGMENT_ORG_ID
*/}

**uv**

```bash
uv add judgeval opentelemetry-instrumentation-aws-lambda
```

**pip**

```bash
pip install judgeval opentelemetry-instrumentation-aws-lambda
```

```python title="lambda_function.py"
from judgeval import Tracer
from opentelemetry.instrumentation.aws_lambda import AwsLambdaInstrumentor

Tracer.init(project_name="lambda_app")


def handler(event, context):
    return {"statusCode": 200, "body": "ok"}


Tracer.registerOTELInstrumentation(AwsLambdaInstrumentor())
```
