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) {