Murali
Murali
LLangfuse
Created by Murali on 9/3/2024 in #support
Vercel AI SDK with Svelte
Hi, I am using vercel AI with svelte.. To configure I have used NodeSDK and create a instrumentation.ts file export const sdk = new NodeSDK({ traceExporter: new LangfuseExporter({ secretKey: env.LANGFUSE_SECRET_KEY, publicKey: env.LANGFUSE_PUBLIC_KEY, baseUrl: env.LANGFUSE_BASE_URL, debug: true, }), instrumentations: [getNodeAutoInstrumentations()], }); for the traces to work, how should I start and shutdown this SDK? If I do this before I trigger AI sdk functions, it sometimes captures the traces and sometimes it doesn't. Any help is much appreciated
13 replies