You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(logsentry): fix stale golog API references after sweep
- WriterConfig godoc example used the nonexistent golog.ErrorLevel() package
func -> golog.DefaultLevels.Error.FilterOutBelow().
- Prose references to the old golog.ErrorHandler var now use the function form
golog.ErrorHandler() after the thread-safe accessor refactor.
Swept all .md and non-test .go: no other occurrences of the broken
golog.XxxLevel() calls or old golog.ErrorHandler var usage remain.
Copy file name to clipboardExpand all lines: logsentry/README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -244,7 +244,7 @@ func NewWriterConfig(
244
244
-**`filter`**: Level filter to control which log levels are sent to Sentry. Use `golog.AllLevelsActive` to send all levels.
245
245
-**`valsAsMsg`**: If `true`, includes key-value pairs in the message text. If `false`, only sends them in the `log` context.
246
246
-**`extra`**: Additional data to include in the `log` context of every Sentry event (e.g., service name, version).
247
-
-**`opts`**: Optional settings. Use `WithErrorHandler(func(error))` to route errors that occur while logging to Sentry into your normal logs (defaults to `golog.ErrorHandler`).
247
+
-**`opts`**: Optional settings. Use `WithErrorHandler(func(error))` to route errors that occur while logging to Sentry into your normal logs (defaults to `golog.ErrorHandler()`).
0 commit comments