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
fix(core): Instrument invoke_agent root span, and support Vercel ai v5 (#17395)
Main changes are:
1. Instrument root `invoke_agent` span: This addresses that transaction
event.spans only includes child spans, ensuring proper correlation
beyond just children.
2. Refactor `vercelai` integration layout in core: Restructured the
vercelai folder to mirror our other AI agent integrations (split
constants/utils/index) for clarity and easier maintenance.
3. Link errors in Vercel AI v5 (metadata-based): Added support to
capture and link tool errors that are returned as result metadata (not
thrown). We correlate tool-call IDs to spans and set the trace/span
context when capturing the error, so errors are attached to the right
tool-call/trace even without a thrown exception.
4. Added tests to test vercel ai v5
0 commit comments