Skip to content

Commit

Permalink
Fix filterFrames func
Browse files Browse the repository at this point in the history
  • Loading branch information
dkeysil committed Mar 23, 2023
1 parent 295a1e8 commit 0deb92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ func filterFrames(frames []sentry.Frame) []sentry.Frame {
for i := range frames {
// Skip zapsentry and zap internal frames, except for frames in _test packages (for
// testing).
if (strings.HasPrefix(frames[i].Module, "github.com/TheZeroSlave/zapsentry") ||
if (strings.HasPrefix(frames[i].Module, "github.com/dkeysil/zapsentry") ||
strings.HasPrefix(frames[i].Function, "go.uber.org/zap")) &&
!strings.HasSuffix(frames[i].Module, "_test") {
return frames[0:i]
Expand Down

0 comments on commit 0deb92c

Please sign in to comment.