getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.32k stars 4.21k forks source link

Discrepancies between Accepted Events in Stats and Sample Count in Discover #80885

Open rodolfoBee opened 2 weeks ago

rodolfoBee commented 2 weeks ago

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Steps to reproduce are unclear at the moment.

Expected Result

Number of accepted events on the stats page to match the Sample Count in Discover and the number of events visible on the Issues page. There were no Deleted issues during the period that could have caused it.

Actual Result

Sampled events and Accepted events do not match (project name redacted):

Image Image

The event are accepted and consume user quota, but without being visible in Sentry, the user is unable to act on them. More detailed information is in the internal Jira ticket.

Product Area

Discover

Link

No response

DSN

No response

Version

No response

┆Issue is synchronized with this Jira Improvement by Unito

getsantry[bot] commented 2 weeks ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 2 weeks ago

Routing to @getsentry/product-owners-discover for triage ⏲️

Dhrumil-Sentry commented 1 week ago

Has the user deleted and discarded any issues? That could lead to this discrepancy- You can check this by searching the audit log

rodolfoBee commented 1 week ago

Yes, there are deleted and discarded issues in the affected project.

Dhrumil-Sentry commented 1 week ago

In this case - Users can go to Project Settings->Inbound Filters and users can view the issues deleted and errors that got dropped due to them - Stats shows what was accepted during the time window, Discover shows what is currently in storage - if you deleted issues those errors would be deleted and won't show up in Discover

Image

rodolfoBee commented 1 week ago

If you use Delete and Discard the event will also not count as ACCEPTED on the Stats page and should not count towards the monthly quotas.

But in this case there are ACCEPTED events not showing in Sentry. This has been discussed internally (see thread in the Jira ticket).