Loading...
Loading...
Debug and improve your LangWatch traces. Inspects production traces for missing input/output, disconnected spans, unlabeled traces, and missing metadata. Use when traces look broken or incomplete.
npx skill4agent add langwatch/skills debug-instrumentationlangwatchlangwatch docs <path>langwatch docs # Docs index
langwatch docs integration/python/guide # Python integration
langwatch docs integration/typescript/guide # TypeScript integration
langwatch docs prompt-management/cli # Prompts CLI
langwatch scenario-docs # Scenario docs indexlangwatch --helplangwatch <subcommand> --help--format json--limit <n>--jq <expr>--jq '.traces | length'.pagination.total--jq length.mdnpx --yes langwatch report --user-approved--title--summary--session <transcript.jsonl>--user-approved--dry-run--email--session--dry-runnpx --yes langwatch report --helplangwatch trace search --limit 25 --start-date "$(( ($(date +%s) - 7*24*3600) * 1000 ))" --format json--start-datedate -d '7 days ago'<empty>langwatch statuslangwatch trace get <traceId> # Human-readable digest
langwatch trace get <traceId> -f json # Full span hierarchy as JSONautotrack_openai_calls(client)experimental_telemetry@langwatch.trace()langwatch.get_current_trace().update(metadata={"labels": ["feature_name"]})langwatch docs # Browse the docs index
langwatch docs integration/python/guide # Python (or your framework)
langwatch docs integration/typescript/guide # TypeScript (or your framework)langwatch trace searchlangwatch trace getlangwatch trace export --format jsonl --limit 50 -o traces.jsonl| Issue | Cause | Fix |
|---|---|---|
All traces show | Missing autotrack or telemetry config | Add |
| Spans not connected to traces | Missing | Add trace decorator to the main function |
| No labels on traces | Labels not set in trace metadata | Add |
| Missing user_id | User ID not passed to trace | Add |
| Traces from different calls merged | Missing | Ensure |