Skip to content

Commit 750a11b

Browse files
authored
Merge pull request #46 from exaring/use-module-filter-to-drop-zap-frames
fix: use module matching to filter out zap
2 parents 9b78836 + 999e47a commit 750a11b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frame_matcher.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type FrameMatcher interface {
2020
var (
2121
defaultFrameMatchers = FrameMatchers{
2222
SkipModulePrefixFrameMatcher("github.com/TheZeroSlave/zapsentry"),
23-
SkipFunctionPrefixFrameMatcher("go.uber.org/zap"),
23+
SkipModulePrefixFrameMatcher("go.uber.org/zap"),
2424
}
2525
)
2626

frame_matcher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func Test_core_filterFrames(t *testing.T) {
5151
args: args{
5252
[]sentry.Frame{
5353
{
54-
Function: "go.uber.org/zap/String",
54+
Module: "go.uber.org/zap",
5555
},
5656
},
5757
},

0 commit comments

Comments
 (0)