Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(ai-proxy): add missing update() method to Langfuse stub

Louis Beaumonte789188fc857
diff --git a/screenpipe-js/ai-proxy/src/services/analytics.ts b/screenpipe-js/ai-proxy/src/services/analytics.ts
index dc62400c9..d79e0d49c 100644
--- a/screenpipe-js/ai-proxy/src/services/analytics.ts
+++ b/screenpipe-js/ai-proxy/src/services/analytics.ts
@@ -14,7 +14,7 @@ export function setupAnalytics(env: Env): Langfuse {
console.log('Langfuse credentials missing, using stub');
// Return a no-op stub that matches the Langfuse interface
const stub = {
- trace: () => ({ span: () => ({ end: () => {} }), generation: () => ({ end: () => {} }) }),
+ trace: () => ({ update: () => {}, span: () => ({ end: () => {} }), generation: () => ({ end: () => {} }) }),
span: () => ({ end: () => {} }),
generation: () => ({ end: () => {} }),
debug: () => {},