Do not send CrashIDNotFound messages to Sentry, or combine into one issue
Categories
(Socorro :: Webapp, enhancement)
Tracking
(Not tracked)
People
(Reporter: jwhitlock, Assigned: jwhitlock)
Details
Attachments
(1 file)
With the Sentry SDK, the logger.error
call when crash data is not found is turned into a Sentry event:
In some cases, this seems to happen when a crash is viewed before processing is complete, and doesn't re-occur when the crash is processed.
Because the message is distinct, a new event is created each time it is encountered.
One way to handle the issue is to apply formatting in the logger:
self.logger.error('%(datatype)s not found: %(exception)s',
{'datatype': params.datatype, 'exception': cidnf})
This should use the format string to add new events to the same issue, avoiding creating many similar issues.
Another option is to change to .warning
, so that it will not be auto-logged. The formatting change can be made at the same time.
A third option is to ignore messages from this logger.
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Changes .error
to .warning
, and switches from a pre-formatted string to a format string.
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
There's an existing crash with no metadata in stage that was causing one of these issues. I reloaded that page, got a "crash not found" message in the browser, a line in the stage logs, and no event in Sentry. Ready for prod.
Assignee | ||
Comment 4•6 years ago
|
||
Deployed to production, these messages are no longer added as events in Sentry.
Description
•