diff --git a/src/telemetry.ts b/src/telemetry.ts index 65aee5a..84ee5c7 100644 --- a/src/telemetry.ts +++ b/src/telemetry.ts @@ -3,7 +3,7 @@ import TelemetryReporter, { type TelemetryEventProperties, type TelemetryEventMe function stringifyProperties(properties: Record): TelemetryEventProperties { const newProperties = {}; - Object.entries(properties).map(([key, value]) => newProperties[key] = String(value)); + Object.entries(properties).map(([key, value]) => newProperties[key] = typeof value !== 'undefined' ? String(value) : undefined); return newProperties; }