From 893c27c2c00f3192142c8412ef00b9633aa10d2f Mon Sep 17 00:00:00 2001 From: Attila Szegedi Date: Fri, 3 Jan 2025 13:27:53 +0100 Subject: [PATCH] Ensure we aren't tripped up by non-string event details --- packages/dd-trace/src/profiling/profilers/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dd-trace/src/profiling/profilers/events.js b/packages/dd-trace/src/profiling/profilers/events.js index 8ff1748ceda..5cff72ea2bc 100644 --- a/packages/dd-trace/src/profiling/profilers/events.js +++ b/packages/dd-trace/src/profiling/profilers/events.js @@ -14,7 +14,7 @@ const pprofValueUnit = 'nanoseconds' const dateOffset = BigInt(Math.round(performance.timeOrigin * MS_TO_NS)) function labelFromStr (stringTable, key, valStr) { - return new Label({ key, str: stringTable.dedup(valStr) }) + return new Label({ key, str: stringTable.dedup(String(valStr)) }) } function labelFromStrStr (stringTable, keyStr, valStr) {