-
Notifications
You must be signed in to change notification settings - Fork 212
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
Upgrade sentry and enable tracing #15778
Conversation
@@ -49,7 +50,7 @@ export class GoogleMapsService { | |||
scope.setContext('googleMapsService', { | |||
address, | |||
}); | |||
Sentry.captureMessage(error.message, Sentry.Severity.Error); | |||
Sentry.captureMessage(error.message, 'error' as SeverityLevel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sentry removed the severity enum in the new version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They did! I was also surprised by this. See release notes here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks for updating those calls, Dan
d90ba74
to
948c477
Compare
948c477
to
850acfa
Compare
850acfa
to
6e062cc
Compare
Because: - We want to enable performance monitoring - We want to upgrade sentry This Commit: - Upgrades sentry to the latest version - Enables tracing by setting the tracesSampleRate to 1 by default. - Tracing can be altered / disabled by setting SENTRY_TRACES_SAMPLE_RATE to a value between 0 and 1.
Because
This pull request
Issue that this pull request solves
Closes: FXA-8219, FXA-8103
Checklist
Put an
x
in the boxes that applyScreenshots (Optional)
Other information (Optional)
Note that currently only the front ends have instrumented cleanly out of the box. We will need to file a follow up ticket for getting tracing (which drives performance monitoring) working on the server side. It's important to know that auto instrumentation is not supported for hapi (see this issue), and that it seems like nestjs is in a similar state.
Interestingly enough Sentry supports otel and it appears to be the recommended approach in some cases. Since we support otel instrumentation on the server side already, we will look into taking this approach. A short experiment with auth server was promising, but definitely deserves its own PR, since it requires upgrading otel and some other tweaks as well.
For now, we will apply these changes, so we can get some client side performance metrics for content server despite knowing the tracing capabilities will be incomplete for server side requests.