From a35db79b1ba1147a4ee70734fc0ba40059d894ee Mon Sep 17 00:00:00 2001 From: Ben White Date: Mon, 23 Sep 2024 10:46:37 +0200 Subject: [PATCH] fix(cdp): Add event id to logs (#25126) --- plugin-server/src/cdp/hog-executor.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/plugin-server/src/cdp/hog-executor.ts b/plugin-server/src/cdp/hog-executor.ts index 9cb6806d3be2c..6770b31718cfe 100644 --- a/plugin-server/src/cdp/hog-executor.ts +++ b/plugin-server/src/cdp/hog-executor.ts @@ -35,11 +35,6 @@ const hogFunctionFilterDuration = new Histogram({ buckets: [0, 10, 20, 50, 100, 200], }) -const hogFunctionFilterErrors = new Counter({ - name: 'cdp_hog_function_filter_errors', - help: 'Errors encountered while filtering functions', -}) - export function execHog(bytecode: any, options?: ExecOptions): ExecResult { return exec(bytecode, { timeout: DEFAULT_TIMEOUT_MS, @@ -122,7 +117,6 @@ export class HogExecutor { hogFunctionName: hogFunction.name, error: error.message, }) - hogFunctionFilterErrors.inc() erroredFunctions.push(hogFunction) return } finally { @@ -135,6 +129,7 @@ export class HogExecutor { hogFunctionName: hogFunction.name, teamId: hogFunction.team_id, duration, + eventId: event.event.uuid, }) } }