Commit 76a79bf
fix(agent-tracing): populate thread_id from session_id in ClaudeAgentTracer
Claude SDK runs are manually constructed and don't have LangChain's
automatic metadata.thread_id. Use session_id as thread_id in
run.extra.metadata so getLogInfoPrefix can extract it consistently
across both LangGraph and Claude tracers.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c4d24f7 commit 76a79bf
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
344 | 347 | | |
345 | 348 | | |
346 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
221 | 225 | | |
222 | 226 | | |
223 | 227 | | |
| |||
0 commit comments