Skip to content

Commit

Permalink
Ensure we aren't tripped up by non-string event details
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi committed Jan 3, 2025
1 parent 12f2418 commit 893c27c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dd-trace/src/profiling/profilers/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 893c27c

Please sign in to comment.