We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I think it's common pattern that logging error and sending events to monitoring service like Sentry, when an error happens.
so it's nice if this logger support sentry, like https://github.com/archdx/zerolog-sentry
some requirements image:
.Msg()
The text was updated successfully, but these errors were encountered:
note:
works with sentry's additional package like https://docs.sentry.io/platforms/go/guides/http/ (automatically set http request info to sentry events)
below snippet will works on sentry side by using http request info.
hub := sentry.GetHubFromContext(ctx) if hub != nil { hub.WithScope(func(scope *sentry.Scope) { scope.SetLevel(level) hub.CaptureException(exception) }) } else { sentry.WithScope(func(scope *sentry.Scope) { scope.SetLevel(level) sentry.CaptureException(exception) }) }
Sorry, something went wrong.
No branches or pull requests
I think it's common pattern that logging error and sending events to monitoring service like Sentry, when an error happens.
so it's nice if this logger support sentry, like https://github.com/archdx/zerolog-sentry
some requirements image:
.Msg()
callThe text was updated successfully, but these errors were encountered: