Skip to content

Commit

Permalink
fix(cdp): Add event id to logs (#25126)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite authored Sep 23, 2024
1 parent 740109d commit a35db79
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions plugin-server/src/cdp/hog-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -122,7 +117,6 @@ export class HogExecutor {
hogFunctionName: hogFunction.name,
error: error.message,
})
hogFunctionFilterErrors.inc()
erroredFunctions.push(hogFunction)
return
} finally {
Expand All @@ -135,6 +129,7 @@ export class HogExecutor {
hogFunctionName: hogFunction.name,
teamId: hogFunction.team_id,
duration,
eventId: event.event.uuid,
})
}
}
Expand Down

0 comments on commit a35db79

Please sign in to comment.