From a0bef340e9e8030b268602af4395ab7d6b67489c Mon Sep 17 00:00:00 2001 From: Anton Gunnarsson Date: Fri, 9 May 2025 11:32:54 +0200 Subject: [PATCH] Format zodError so we don't try to sanitize functions --- apps/scandic-web/server/telemetry/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/scandic-web/server/telemetry/index.ts b/apps/scandic-web/server/telemetry/index.ts index 68513b197..889513553 100644 --- a/apps/scandic-web/server/telemetry/index.ts +++ b/apps/scandic-web/server/telemetry/index.ts @@ -235,7 +235,7 @@ export function createCounter(meterName: string, counterName: string) { baseAttrs, { error_type: "validation_error", - error: zodError, + error: zodError.format(), }, ]) const finalAttrs = sanitize(mergedAttrs)