Remove NewRelic integration.

Remove the NewRelic integration in preparation for migrating to Elastic APM instead.
This commit is contained in:
evazion
2022-04-11 01:09:36 -05:00
parent 05261bf6d7
commit 98b313f8de
11 changed files with 20 additions and 66 deletions

View File

@@ -1,14 +0,0 @@
class NewRelic {
static initialize_all() {
/* https://docs.newrelic.com/docs/browser/new-relic-browser/browser-agent-spa-api/setcustomattribute-browser-agent-api/ */
if (typeof window.newrelic === "object") {
window.newrelic.setCustomAttribute("screenWidth", window.screen.width);
window.newrelic.setCustomAttribute("screenHeight", window.screen.height);
window.newrelic.setCustomAttribute("screenResolution", `${window.screen.width}x${window.screen.height}`);
window.newrelic.setCustomAttribute("devicePixelRatio", window.devicePixelRatio);
}
}
}
NewRelic.initialize_all();
export default NewRelic;