Other
PyMongo
Trace PyMongo spans with Judgment.
PyMongo tracing uses the standard OpenTelemetry PyMongo instrumentation and routes MongoDB spans through Judgment.
uv add judgeval pymongo opentelemetry-instrumentation-pymongopip install judgeval pymongo opentelemetry-instrumentation-pymongofrom judgeval import Tracer
from opentelemetry.instrumentation.pymongo import PymongoInstrumentor
from pymongo import MongoClient
Tracer.init(project_name="pymongo_app")
Tracer.registerOTELInstrumentation(PymongoInstrumentor())
# Create clients normally after registration.
# client = MongoClient("mongodb://localhost:27017")
# client.my_db.my_collection.find_one({})