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-redispip install judgeval redis opentelemetry-instrumentation-redisimport 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")