Skip to content

Commit dcbac24

Browse files
committed
fix: Run Contextify integration on Threads as well
1 parent 24bba70 commit dcbac24

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v0.2.1
4+
5+
- fix: Run `Contextify` integration on `Threads` as well
6+
37
## v0.2.0
48

59
- feat: Add `SetTransaction()` method on the `Scope`

integrations.go

+11
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,17 @@ func (cfi *contextifyFramesIntegration) processor(event *Event, hint *EventHint)
295295
ex.Stacktrace.Frames = cfi.contextify(ex.Stacktrace.Frames)
296296
}
297297

298+
// Range over all threads
299+
for _, th := range event.Threads {
300+
// If it has no stacktrace, just bail out
301+
if th.Stacktrace == nil {
302+
continue
303+
}
304+
305+
// If it does, it should have frames, so try to contextify them
306+
th.Stacktrace.Frames = cfi.contextify(th.Stacktrace.Frames)
307+
}
308+
298309
return event
299310
}
300311

0 commit comments

Comments
 (0)