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

Redis tracing uses the standard OpenTelemetry Redis instrumentation and routes
cache spans through Judgment.

{/* @test-flow
  id: tracing-db-redis
  lang: python
  env: JUDGMENT_API_KEY, JUDGMENT_ORG_ID
*/}

**uv**

```bash
uv add judgeval redis opentelemetry-instrumentation-redis
```

**pip**

```bash
pip install judgeval redis opentelemetry-instrumentation-redis
```

```python title="redis_tracing.py"
from judgeval import Tracer
from opentelemetry.instrumentation.redis import RedisInstrumentor

Tracer.init(project_name="redis_app")
Tracer.registerOTELInstrumentation(RedisInstrumentor())

# Create clients normally after registration.
# client = redis.Redis(host="localhost", port=6379)
# client.get("key")
```
