feat(devtools): add new devtools integration for telemetry#14207
Merged
aayush-kapoor merged 26 commits intomainfrom Apr 10, 2026
Merged
feat(devtools): add new devtools integration for telemetry#14207aayush-kapoor merged 26 commits intomainfrom
aayush-kapoor merged 26 commits intomainfrom
Conversation
Collaborator
|
Can we call it |
4 tasks
Collaborator
Author
sgtm, will change in a future PR for others |
4 tasks
aayush-kapoor
added a commit
that referenced
this pull request
Apr 10, 2026
## Background added as work for #14207 when using the streaming functions and logging telemetry via devtools, the raw chunks couldn't be seen in the viewer. and that's because the event types weren't being passed through callbacks ## Summary dispatch content chunk types through the global onChunk so that telemetry integrations receive the full stream. ## Manual Verification verified as a part of #14207 ## Checklist - [x] Tests have been added / updated (for bug fixes / features) - [ ] Documentation has been added / updated (for bug fixes / features) - [x] A _patch_ changeset for relevant packages has been added (for bug fixes / features - run `pnpm changeset` in the project root) - [x] I have reviewed this pull request (self-review)
|
🚀 Published in:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Background
our devtools setup currently uses middleware to extract event info
this needed to change since we now expose all the events that will be needed by devtools to initialise the spans
replacement for #12868
Summary
devToolsIntegration()that extends on the telemetry integration apiManual Verification
verified by running the example
examples/ai-functions/src/generate-text/anthropic/subagent-with-telemetry.tsChecklist
pnpm changesetin the project root)