Judgment Labs Logo
Other

Redis

Trace Redis spans with Judgment.

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

uv add judgeval redis opentelemetry-instrumentation-redis
pip install judgeval redis opentelemetry-instrumentation-redis
redis_tracing.py
import redis
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")

On this page

No Headings