-
Notifications
You must be signed in to change notification settings - Fork 38
feat: add Rozenite AI SDK profiler plugin #186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Add the dev tools plugin package and update docs/readmes to cover Rozenite setup and preview assets.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR introduces a new Rozenite DevTools plugin for profiling Vercel AI SDK telemetry spans in React Native applications. The plugin captures OpenTelemetry spans from AI SDK requests and displays them in an interactive UI for debugging and performance analysis.
Changes:
- Adds
@react-native-ai/dev-tools-pluginpackage with OpenTelemetry integration - Implements React Native hook and tracer setup for AI SDK telemetry capture
- Creates Rozenite DevTools UI panel for visualizing spans with filtering capabilities
- Updates documentation across website and README with setup instructions
Reviewed changes
Copilot reviewed 20 out of 22 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/dev-tools-plugin/package.json | Package configuration with Rozenite dependencies |
| packages/dev-tools-plugin/react-native.ts | Entry point with environment detection |
| packages/dev-tools-plugin/src/react-native/* | Core implementation (tracer, recorder, hooks) |
| packages/dev-tools-plugin/src/ui/App.tsx | DevTools UI panel with span visualization |
| packages/dev-tools-plugin/src/shared/* | Shared types and constants |
| website/src/docs/dev-tools.md | New documentation page |
| website/src/docs/index.md | DevTools section addition |
| README.md | DevTools overview with installation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
packages/dev-tools-plugin/src/react-native/telemetry-recorder.ts
Outdated
Show resolved
Hide resolved
artus9033
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing 🔥 Left just two comments for better stability and one nit, LGTM after they are resolved!
Summary
Test plan