AI SDK is a library that allows you to add LLM features to your JS/TS applications. It supports tracing using OpenTelemetry. Laminar tracing is based on OpenTelemetry, so it is fully compatible with Vercel AI SDK tracing and you can start sending Vercel AI SDK traces to Laminar right away.Documentation Index
Fetch the complete documentation index at: https://docs.hipocap.com/llms.txt
Use this file to discover all available pages before exploring further.
Get your project API key
To get the project API key, go to the Laminar dashboard, click the project settings,
and generate a project API key. This is available both in the cloud and in the self-hosted version of Laminar.Specify the key at
Laminar initialization. If not specified,
Laminar will look for the key in the LMNR_PROJECT_API_KEY environment variable.Initialize Laminar
- Next.js
- Node.js
In Next.js, place You will also need to update your This is because Laminar depends on OpenTelemetry, which uses some Node.js-specific functionality, and we need to inform Next.js about it. Learn more in the Next.js docs.
Laminar.initialize in the instrumentation.ts file.instrumentation.ts
next.config.ts file to include the serverExternalPackages option.next.config.ts
