-
Notifications
You must be signed in to change notification settings - Fork 210
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
task(admin-server): Fix admin server startup times and some refactor #17938
Conversation
65b9e6e
to
763c096
Compare
14b9341
to
47dcc5d
Compare
Because: - We want to improve startup performance of admin-server - We determined using the @sentry/node package in the admin-server was source of slowdown - Using @sentry/nestjs made a big improvement in startup time. This Commit: - Switches to using @sentry/nestjs integration for admin-server - Refactors libs/sentry into three distinct contexts libs/sentry-nestjs, libs/sentry-node, libs/sentry-browser, and libs/sentry-utils - Extracts common functions to libs/sentry-utils so they can be reused.
47dcc5d
to
14c64e1
Compare
@@ -17,7 +17,7 @@ import { DEFAULT_LOCALE, EN_GB_LOCALES } from './l10n.constants'; | |||
* | |||
*/ | |||
export function parseAcceptLanguage( | |||
acceptLanguage: string, | |||
acceptLanguage?: string, |
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.
There's a null check, but with ==
so I guess this is fine.
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.
🏅 LGTM. Thanks, @dschom.
If you are up for it, you should give a talk on OTEL and Sentry to FxA+SubPlat. Lay that expertise on us. 🙇
Because
This pull request
Issue that this pull request solves
Closes: FXA-10402, FXA-10460, FXA-10648
Checklist
Put an
x
in the boxes that applyScreenshots (Optional)
Please attach the screenshots of the changes made in case of change in user interface.
Other information (Optional)
We still need a follow ups to clean this up which involves removing
libs/sentry
and removingfxa-shared/sentry
, andfxa-shared/otel
. Unfortunately this effort spiraled out of control due to a lack of typescript support (or quirks with existing tsconfigs) in our workspace packages. Special notes about this have been added to related tickets in the backlog under this epic. A semi broken attempt at fully porting this can be found here 😬.Also here's some notes on timing from local machine:
@sentry/node:7^ - With Sentry included - 3,566ms
@sentry/node:8^ - With Sentry included - 25,906ms
@sentry/node:8^ - With Sentry and all integrations filtered - 23,884ms
@sentry/node:8^ - With Sentry commented out entirely - 3,673ms
@sentry/nestjs:8^ - With Sentry - 8,558ms