initialize() call.
Install
Initialize
The SDK patches your LLM client the momentinitialize() runs, so it must run before the LLM SDK is imported. In Next.js use instrumentation.ts at the project root — see the Next.js guide. In a plain Node process, call it at the top of your entry file:
instrumentModules so they’re patched directly — see Configuration.
Next steps
- Configuration — every option accepted by
initialize(). - Providers — every LLM provider we auto-instrument.
- Python SDK — same concepts, snake_case, context managers.