Skip to content

Commit

Permalink
Fix go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
dkeysil committed Mar 23, 2023
1 parent 63033d1 commit 295a1e8
Show file tree
Hide file tree
Showing 3 changed files with 697 additions and 95 deletions.
12 changes: 6 additions & 6 deletions example_logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"go.uber.org/zap/zapcore"
"go.uber.org/zap/zaptest/observer"

"github.com/TheZeroSlave/zapsentry"
"github.com/dkeysil/zapsentry"
)

func ExampleAttachCoreToLogger() {
Expand All @@ -29,9 +29,9 @@ func ExampleAttachCoreToLogger() {

// Setup zapsentry
core, err := zapsentry.NewCore(zapsentry.Configuration{
Level: zapcore.ErrorLevel, // when to send message to sentry
EnableBreadcrumbs: true, // enable sending breadcrumbs to Sentry
BreadcrumbLevel: zapcore.InfoLevel, // at what level should we sent breadcrumbs to sentry
Level: zapcore.ErrorLevel, // when to send message to sentry
EnableBreadcrumbs: true, // enable sending breadcrumbs to Sentry
BreadcrumbLevel: zapcore.InfoLevel, // at what level should we sent breadcrumbs to sentry
Tags: map[string]string{
"component": "system",
},
Expand Down Expand Up @@ -59,8 +59,8 @@ func ExampleAttachCoreToLogger() {

func mockSentryClient(f func(event *sentry.Event)) *sentry.Client {
client, _ := sentry.NewClient(sentry.ClientOptions{
Dsn: "",
Transport: &transport{MockSendEvent: f},
Dsn: "",
Transport: &transport{MockSendEvent: f},
})
return client
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/TheZeroSlave/zapsentry
module github.com/dkeysil/zapsentry

go 1.17

Expand Down
Loading

0 comments on commit 295a1e8

Please sign in to comment.