addons icon indicating copy to clipboard operation
addons copied to clipboard

Investigate Sentry profiling and performance features

Open diox opened this issue 3 years ago • 5 comments

We're currently only using Sentry for exceptions tracking, but they also offer performance and now profiling-related features. See https://sentry.io/for/performance/ and https://blog.sentry.io/2022/11/21/profiling-for-python/#working-with-date-times

┆Issue is synchronized with this Jira Task

diox avatar Nov 23 '22 10:11 diox

We've enabled it on dev only for now and found ~~a couple~~ one interesting thing right out of the box that we fixed (the second thing is a red-herring):

  • https://github.com/mozilla/addons/issues/9003
  • ~~https://github.com/mozilla/addons/issues/1837~~

diox avatar Nov 29 '22 16:11 diox

We should use before_send_transaction from sentry_sdk 1.14.0 to also strip sensitive data from performance profiles.

diox avatar Jan 23 '23 15:01 diox

Temporarily disabled on dev through the SENTRY_TRACES_SAMPLE_RATE env variable (set to 0) while we investigate other issues

diox avatar Feb 09 '23 11:02 diox

According to an email I got from Sentry, profiling is going to be out of beta on 1st May. (And transactions with profiling enabled will be "charged" at 1.3x the rate of transactions without profiling - though I don't have any insight into our plan/budgets/billing to know if this would be a concern)

eviljeff avatar Apr 11 '23 15:04 eviljeff

Old Jira Ticket: https://mozilla-hub.atlassian.net/browse/ADDSRV-134

KevinMind avatar May 03 '24 17:05 KevinMind