Skip to content

Commit

Permalink
feat: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ryomak committed Mar 31, 2024
1 parent 921ab27 commit 15430e5
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,20 +94,19 @@ The location where serrs.Wrap is executed is saved as a stack trace and displaye
```go

serrs.ReportSentry(
err,
// Customize the contexts
serrs.WithSentryContexts(map[string]sentry.Context{
"custom": map[string]any{
"key": "value",
},
}),
// Customize the Sentry tags
serrs.WithSentryTags(map[string]string{
"code": serrs.GetErrorCodeString(err),
}),

// Customize the Sentry Level
serrs.WithSentryLevel(sentry.LevelInfo),
err,
// Customize the contexts
serrs.WithSentryContexts(map[string]sentry.Context{
"custom": map[string]any{
"key": "value",
},
}),
// Customize the Sentry tags
serrs.WithSentryTags(map[string]string{
"code": serrs.GetErrorCodeString(err),
}),
// Customize the Sentry Level
serrs.WithSentryLevel(sentry.LevelInfo),
)
```

Expand Down

0 comments on commit 15430e5

Please sign in to comment.