Monitoring
The site uses New Relic to monitor and track errors that occur on the app.
New Relic
The config file for New Relic can be found in the root of the repo (newrelic.js).
Client
From client side monitoring we inject a script (newRelic.tsx) into the root layout. There is also some configuration for this in next.config.js.
Server
For server side monitoring we use Winston to log messages and pass them to New Relic. We have a logging utility in packages/core/libs/logging which initialises Winston to send logs to New Relic with no extra configuration. There is also some configuration for this in instrumentation.ts.
Utilities
We have added several utilities to help collect important info for debugging issues. These can be found in libs/sentry/utilities and libs/errors/utilities.