instrumentModules config required.
Setup
- AI SDK 7
- AI SDK 6 (legacy)
TraceRoot.initialize() and register the AI SDK’s OpenTelemetry integration before your first model call:Usage
Once initialized, everygenerateText / streamText call, model call, and tool execution is captured automatically:
- AI SDK 7
- AI SDK 6 (legacy)
What Gets Captured
Run the example
Clone the repo and run a complete agent end-to-end.TypeScript
Run the TypeScript example