Skip to content

Commit

Permalink
Defend against ref being undefined (#4831)
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi authored and rochdev committed Nov 6, 2024
1 parent 3c10a5a commit ec10b7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dd-trace/src/profiling/profilers/wall.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ class NativeWallProfiler {

const labels = { ...getThreadLabels() }

const { context: { ref: { spanId, rootSpanId, webTags, endpoint } }, timestamp } = context
const { context: { ref }, timestamp } = context
const { spanId, rootSpanId, webTags, endpoint } = ref ?? {}

if (this._timelineEnabled) {
// Incoming timestamps are in microseconds, we emit nanos.
Expand Down

0 comments on commit ec10b7c

Please sign in to comment.