From eb595d2a66ecb63823e85d930ebfed1bdffb1d29 Mon Sep 17 00:00:00 2001 From: Meltcap Date: Sun, 25 Aug 2024 14:39:19 +0200 Subject: [PATCH] Bugfix/langwatch missing returnids (#3077) * Update handler.ts Add missing langWatch: {} to onLLMStart and onLLMStart * Update handler.ts Revert changes so I can make bugfix branch * Update handler.ts - missing langWatch Add missing langWatch object to returnIds for missing 'span' bug. --- packages/components/src/handler.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/components/src/handler.ts b/packages/components/src/handler.ts index 3c3b9b256..faf0b260b 100644 --- a/packages/components/src/handler.ts +++ b/packages/components/src/handler.ts @@ -633,7 +633,8 @@ export class AnalyticHandler { const returnIds: ICommonObject = { langSmith: {}, langFuse: {}, - lunary: {} + lunary: {}, + langWatch: {} } if (Object.prototype.hasOwnProperty.call(this.handlers, 'langSmith')) { @@ -789,7 +790,8 @@ export class AnalyticHandler { const returnIds: ICommonObject = { langSmith: {}, langFuse: {}, - lunary: {} + lunary: {}, + langWatch: {} } if (Object.prototype.hasOwnProperty.call(this.handlers, 'langSmith')) {