Skip to content

fix: support AI SDK 7 telemetry end callbacks#2172

Open
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi-fix-ai-sdk-v7-telemetry-end
Open

fix: support AI SDK 7 telemetry end callbacks#2172
Abhijeet Prasad (AbhiPrasad) wants to merge 1 commit into
mainfrom
abhi-fix-ai-sdk-v7-telemetry-end

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Member

AI SDK 7 registerTelemetry dispatches completion events through onEnd, onEmbedEnd, onRerankEnd, and onObjectStepEnd. braintrustAISDKTelemetry was still exposing the older *Finish callback names, so those completion handlers were never invoked and successful generate/stream/embed/rerank parent spans could remain open indefinitely.

Switch the telemetry integration and auto-patched dispatcher to the stable AI SDK 7 callback names, derive stream TTFT from v7 model-call performance data, and run the AI SDK v7 e2e matrix against ai@7.0.0

AI SDK 7 registerTelemetry dispatches completion events through onEnd, onEmbedEnd, onRerankEnd, and onObjectStepEnd. braintrustAISDKTelemetry was still exposing the older *Finish callback names, so those completion handlers were never invoked and successful generate/stream/embed/rerank parent spans could remain open indefinitely.

Switch the telemetry integration and auto-patched dispatcher to the stable AI SDK 7 callback names, derive stream TTFT from v7 model-call performance data, and run the AI SDK v7 e2e matrix against ai@7.0.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant