Integrate Gentrace with Next.js applications for comprehensive AI tracing
@opentelemetry/sdk-trace-node
v1 (not v2) due to functionality and type compatibility issues with v2.instrumentation.ts
file in your project root:
instrumentation.ts
during server startup. No additional configuration is needed.otelSetup: false
:
otelSetup: false
in Next.js to avoid conflicts between Gentrace’s OpenTelemetry setup and Vercel’s..env.local
: