Pull a production trace into your IDE to debug a bad LLM response
Quand l'utiliser : A user reports a wrong answer; the trace is in Opik; you want to inspect it without leaving Cursor.
Prérequis
- Opik API key — comet.com/site > API Keys (or self-hosted admin)
Déroulement
-
Find the traceSearch traces in project 'prod-chatbot' where output contains 'I cannot help with that'. Last 24h.✓ Copié→ Matching trace IDs + timestamps
-
InspectOpen trace ID abc123. Show me the full message chain, tools called, and intermediate reasoning.✓ Copié→ Full trace object
-
Form hypothesisWhy might the model have refused? Compare this trace to a successful one on the same prompt template.✓ Copié→ Diff + hypothesis
Résultat : Faster trace-driven debugging without app-switching.
Pièges
- PII in traces — Configure Opik's redaction before enabling MCP access broadly