Pull a production trace into your IDE to debug a bad LLM response
Когда использовать: A user reports a wrong answer; the trace is in Opik; you want to inspect it without leaving Cursor.
Предварительные требования
- Opik API key — comet.com/site > API Keys (or self-hosted admin)
Поток
-
Find the traceSearch traces in project 'prod-chatbot' where output contains 'I cannot help with that'. Last 24h.✓ Скопировано→ Matching trace IDs + timestamps
-
InspectOpen trace ID abc123. Show me the full message chain, tools called, and intermediate reasoning.✓ Скопировано→ Full trace object
-
Form hypothesisWhy might the model have refused? Compare this trace to a successful one on the same prompt template.✓ Скопировано→ Diff + hypothesis
Итог: Faster trace-driven debugging without app-switching.
Подводные камни
- PII in traces — Configure Opik's redaction before enabling MCP access broadly