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
Hi, I'd like to have the ability for this package to also send Sentry breadcrumbs when the user logs at a certain level, for example logger.Info
logger.Info
The text was updated successfully, but these errors were encountered:
I suppose we might do something like that:
logger := slog.New(slogsentry.Option{Level: slog.LevelDebug}.NewSentryHandler()) entry := logger.With(slogsentry.Breadcrumb{ ... }) [...] entry = entry.With(slogsentry.Breadcrumb{ ... }) [...] entry = entry.With(slogsentry.Breadcrumb{ ... }) [...] entry.Error("error")
WDYT ?
Sorry, something went wrong.
It would be useful to be able to specify a MinimumBreadcrumbLevel in slogsentry.Option and automatically add logs above that level as Breadcrumb, like logger integration in other languages. https://docs.sentry.io/platforms/dotnet/guides/extensions-logging/#minimumbreadcrumblevel
MinimumBreadcrumbLevel
slogsentry.Option
No branches or pull requests
Hi, I'd like to have the ability for this package to also send Sentry breadcrumbs when the user logs at a certain level, for example
logger.Info
The text was updated successfully, but these errors were encountered: