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