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

Upgrade sentry and enable tracing #15778

Merged
merged 1 commit into from
Sep 13, 2023
Merged

Upgrade sentry and enable tracing #15778

merged 1 commit into from
Sep 13, 2023

Conversation

dschom
Copy link
Contributor

@dschom dschom commented Sep 11, 2023

Because

  • We want to enable performance monitoring
  • We want to upgrade sentry

This pull request

  • 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.

Issue that this pull request solves

Closes: FXA-8219, FXA-8103

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

image

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.

@dschom dschom requested a review from a team as a code owner September 11, 2023 20:17
@@ -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);
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@chenba chenba left a 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

@dschom dschom force-pushed the enable-sentry-perf branch 2 times, most recently from d90ba74 to 948c477 Compare September 13, 2023 15:15
@nx-cloud
Copy link

nx-cloud bot commented Sep 13, 2023

@dschom dschom closed this Sep 13, 2023
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.
@dschom dschom reopened this Sep 13, 2023
@dschom dschom merged commit 3baa6f6 into main Sep 13, 2023
10 checks passed
@dschom dschom deleted the enable-sentry-perf branch September 13, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants