mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-03 14:52:28 +08:00
feat: integrate Langfuse for LLM observability
- Add instrumentation.ts with Langfuse OpenTelemetry exporter - Enable experimental telemetry on streamText calls - Add instrumentationHook to Next.js config - Install required dependencies (@vercel/otel, langfuse-vercel, etc.)
This commit is contained in:
9
instrumentation.ts
Normal file
9
instrumentation.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { registerOTel } from '@vercel/otel';
|
||||
import { LangfuseExporter } from 'langfuse-vercel';
|
||||
|
||||
export function register() {
|
||||
registerOTel({
|
||||
serviceName: 'next-ai-draw-io',
|
||||
traceExporter: new LangfuseExporter(),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user