@mastra/langfuse: import err: 'exportEvent' is missing in type 'LangfuseExporter'
I'm trying to import exporter, but got error
'exportEvent' is missing in type 'LangfuseExporter'
"@mastra/core": "^0.23.1",
"@mastra/langfuse": "^0.2.1",
import { LangfuseExporter } from "@mastra/langfuse"
...
observability: {
configs: { langfuse: { serviceName: "my-project", exporters: [ new LangfuseExporter({ publicKey: process.env.LANGFUSE_PUBLIC_KEY!, secretKey: process.env.LANGFUSE_SECRET_KEY!, baseUrl: process.env.LANGFUSE_HOST }), ], }, }, }, I see closed issue https://github.com/mastra-ai/mastra/issues/9272 Would it help this? Or I'm doing wrong?
configs: { langfuse: { serviceName: "my-project", exporters: [ new LangfuseExporter({ publicKey: process.env.LANGFUSE_PUBLIC_KEY!, secretKey: process.env.LANGFUSE_SECRET_KEY!, baseUrl: process.env.LANGFUSE_HOST }), ], }, }, }, I see closed issue https://github.com/mastra-ai/mastra/issues/9272 Would it help this? Or I'm doing wrong?
GitHub
[DISCORD:1431329685597585553] Errors using latest @mastra/langfuse ...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1431329685597585553 Hey team, having an issue updating to the latest langfuse exporter (was having no cost...
5 Replies
📝 Created GitHub issue: https://github.com/mastra-ai/mastra/issues/9443
GitHub
[DISCORD:1432986363917111307] @mastra/langfuse: import err: 'export...
This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1432986363917111307 I'm trying to import exporter, but got error 'exportEvent' is missing in t...
yep, this is broken
Do you know when this new changes will be available @Romain ?
in 0.23.3 langfuse is already working
oh not for me !
I am getting:
⨯ Error: AI Tracing instance 'development' already registered
at <unknown> (src/mastra/index.ts:19:23)
17 | const store = new PostgresStore({ connectionString });
18 |
19 | export const mastra = new Mastra({| ^ 20 | agents: { nisa }, 21 | workflows: { "create-interaction-workflow": createInteractionWorkflow }, 22 | observability: { { page: '/api/chat' } and traces not working... I am in nextjs: instrumentation.ts: import { NodeSDK, ATTR_SERVICE_NAME, resourceFromAttributes, } from "@mastra/core/telemetry/otel-vendor"; import { LangfuseExporter } from "langfuse-vercel"; export function register() { const exporter = new LangfuseExporter({ publicKey: process.env.LANGFUSE_PUBLIC_KEY, secretKey: process.env.LANGFUSE_SECRET_KEY, baseUrl: process.env.LANGFUSE_HOST, // Optional }); const sdk = new NodeSDK({ resource: resourceFromAttributes({ [ATTR_SERVICE_NAME]: "ai", }), traceExporter: exporter, }); sdk.start(); } and this is my mastra config: observability: { configs: { development: { serviceName: "nisa-dev", exporters: [new DefaultExporter()], }, langfuse: { serviceName: "nisa-langfuse", exporters: [ // @ts-expect-error new LangfuseExporter({ publicKey: process.env.LANGFUSE_PUBLIC_KEY, secretKey: process.env.LANGFUSE_SECRET_KEY, baseUrl: process.env.LANGFUSE_HOST, // Optional realtime: true, // We should improve this to false in production options: { environment: getEnvironment(), }, }), ], processors: [new LangfuseTraceAnnotatorProcessor()], }, }, },
try not langfuse-versel but @mastra/langfuse instead