getsentry / getsentry/sentry-dotnet

Recurring exceptions in Hangfire jobs result in lots of useless breadcrumbs

Open
#3,632 0 comments 0 reactions 0 assignees View on GitHub
.NET Errors Improvement
Dominant language
C#
Stars
770
Forks
248
Avg merge
3d 4h
Merged PRs (30d)
49

Description

When you have a hangfire job that fails repeatedly:

* You get a useful error report when the exception is first reported
* The error is then reported again, and again... ad infinitum
* These subsequent errors become less and less useful because the breadcrumbs are just filled with this one exception

The behaviour to create a breadcrumb for any exceptions is something that was [added in version 4.11.0]().

In this particular case, since it's a recurring exception, all of those breadcrumbs aren't that useful... Potentially before adding a breadcrumb for an exception, we could check to see if a breadcrumb for the exact same exception already exists on the scope and, if so, skip it. As long as the stack trace was always the same, this might be possible.

*Originally posted by @jamescrosswell in *[*#3626*]()

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.