You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
instrumentLangGraph input/output recording only works with MessagesAnnotation #19628
It looks for args[0].messages, which only exists when using MessagesAnnotation. Custom state keys (like idea, expanded, etc.) are ignored. The OTEL gen_ai.input.messages / gen_ai.output.messages attributes are message-array-oriented by design, but there is no fallback to record arbitrary state.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Thanks for filing this @priscilawebdev, this current behavior matches the python SDK's LangGraph integration. I'll have a go at serializing the entire state here and talk to the python team about getting that in there too if we agree on the approach.
Activity
linear commentedon Mar 4, 2026
JS-1860
andreiborza commentedon Mar 4, 2026
Thanks for filing this @priscilawebdev, this current behavior matches the python SDK's LangGraph integration. I'll have a go at serializing the entire state here and talk to the python team about getting that in there too if we agree on the approach.
fix(server-utils): Record LangGraph span I/O for non-MessagesAnnotati…
github-actions commentedon Oct 8, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #23315, which was included in the 11.6.0 release.