Skip to content
New issue

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

Investigate higher number of sentry bugs #8574

Closed
joejuzl opened this issue Apr 29, 2021 · 6 comments
Closed

Investigate higher number of sentry bugs #8574

joejuzl opened this issue Apr 29, 2021 · 6 comments
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework effort:atom-squad/2 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. tool:sentry type:maintenance 🔧 Improvements to tooling, testing, deployments, infrastructure, code style.

Comments

@joejuzl
Copy link
Contributor

joejuzl commented Apr 29, 2021

We are hitting the limit of 50k errors/month.
We should see why this number is higher.
Is it because of:

  • More users?
  • User errors that should be ignored?
  • More bugs?
    Should we upgrade to the next sentry plan?

Definition of done:

  • Find the cause(es) for more bugs
  • Determine if we should upgrade to next sentry plan
  • Open followup issues if necessary
@joejuzl joejuzl added the area:rasa-oss 🎡 Anything related to the open source Rasa framework label Apr 29, 2021
@TyDunn TyDunn added type:maintenance 🔧 Improvements to tooling, testing, deployments, infrastructure, code style. tool:sentry labels May 5, 2021
@wochinge wochinge added the effort:atom-squad/2 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. label May 7, 2021
@m-vdb
Copy link
Collaborator

m-vdb commented May 12, 2021

Received this Sentry report in my inbox on Monday:
Screenshot 2021-05-12 at 08 34 22

@wochinge
Copy link
Contributor

wochinge commented May 19, 2021

Investigation Results

Screenshot 2021-05-19 at 12 04 59

Next steps

Not suggested next steps

  • Introduce a separate alert for issues with more than 5000 events per week. I wouldn't do this as these are mostly caused by very few users. Issues which impact more users are covered by existing rules.
  • I suggest setting the quota back to 200 000. If we discard the ValueError and the OSErrors this accounts for roughly 162 000 errors which leaves us with ~120 000 errors. 200 000 errors should hence still give us plenty of buffer. Reason: see Tom's comment
  • doesn't work as we don't have a business plan:
    • Ignored and discard the ValueError for environment variables which caused ~120k events. This means that this issue will no longer count towards our quota (see 4.1 here). This operation is revertible in case we think we made the wrong decision at same point.
    • Do the same for the OSErrors

@tmbo
Copy link
Member

tmbo commented May 19, 2021

Happy to keep the limit at 500k, the cost difference is marginal to 200k

@m-vdb
Copy link
Collaborator

m-vdb commented May 19, 2021

the ValueError seems a bit tricky: are we completely sure it's because of a usage error? I remember that there was a recent issue with how Rasa X discovered yaml files, and it tried to read the .github/ folder of a git repository (in this case the culprit was Rasa X).

@wochinge
Copy link
Contributor

the ValueError seems a bit tricky: are we completely sure it's because of a usage error?

I think it might be possible that Rasa Open Source causes this error if users put completely unrelated files in the data directory which are very similar to Rasa training data files and contain env variables placeholder. I'd still classify that as a user error though. We've also changed to a RasaException (#8382) anyway. So discarding this issue in sentry would affect only what old Rasa Open Source versions (pre this fix) send anyway.

@wochinge
Copy link
Contributor

I can't discard the ValueError 🤦🏻 It's a feature that requires a business plan. Let's keep it for now. Users will eventually move to newer releases which don't send a sentry event for this
Screenshot 2021-05-20 at 09 56 38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework effort:atom-squad/2 Label which is used by the Rasa Atom squad to do internal estimation of task sizes. tool:sentry type:maintenance 🔧 Improvements to tooling, testing, deployments, infrastructure, code style.
Projects
None yet
Development

No branches or pull requests

5 participants