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