From 4fb40eb877de3844887f07eefa7d4bf89578691d Mon Sep 17 00:00:00 2001 From: nsemets Date: Thu, 23 Oct 2025 15:38:35 +0300 Subject: [PATCH 1/2] fix(new-relic): added new relic setup --- package-lock.json | 104 +++++++++++++++++- package.json | 1 + .../application.initialization.provider.ts | 8 ++ src/app/shared/models/environment.model.ts | 26 ++++- src/assets/config/template.json | 30 ++++- src/environments/environment.development.ts | 31 +++++- src/environments/environment.docker.ts | 27 +++++ src/environments/environment.staging.ts | 27 +++++ src/environments/environment.test-osf.ts | 27 +++++ src/environments/environment.test.ts | 27 +++++ src/environments/environment.ts | 27 +++++ src/index.html | 4 +- 12 files changed, 326 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 08471af56..03cc9e29a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,6 +20,7 @@ "@citation-js/core": "^0.7.18", "@citation-js/plugin-csl": "^0.7.18", "@fortawesome/fontawesome-free": "^6.7.2", + "@newrelic/browser-agent": "^1.301.0", "@ngx-translate/core": "^16.0.4", "@ngx-translate/http-loader": "^16.0.1", "@ngxs/devtools-plugin": "^19.0.0", @@ -6366,6 +6367,66 @@ "node": ">= 10" } }, + "node_modules/@newrelic/browser-agent": { + "version": "1.301.0", + "resolved": "https://registry.npmjs.org/@newrelic/browser-agent/-/browser-agent-1.301.0.tgz", + "integrity": "sha512-x+uNczN7vCpThFzggjwVXmDOLow5Qu/d4XlmBKG4+aYBbQ5G5TvzSp19fnKQXq8jwHPdjFFhAR2vMQzF8/LPbQ==", + "license": "Apache-2.0", + "dependencies": { + "@newrelic/rrweb": "1.0.1", + "fflate": "0.8.2", + "web-vitals": "4.2.4" + }, + "engines": { + "node": ">=12.17.0 < 13.0.0 || >=13.7.0" + } + }, + "node_modules/@newrelic/rrdom": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@newrelic/rrdom/-/rrdom-1.0.1.tgz", + "integrity": "sha512-nfO0ZnyqIta4gnKmcoAyP03o7Jc+EAj0TyJPq91gwNXkzbHSazDM0uWXj2KCCXFqx3KLu68cFbkcJXb8/piqTw==", + "license": "MIT", + "dependencies": { + "@newrelic/rrweb-snapshot": "^1.0.1" + } + }, + "node_modules/@newrelic/rrweb": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@newrelic/rrweb/-/rrweb-1.0.1.tgz", + "integrity": "sha512-qr6JbjamTPYfkJazf+Rpd4AGPgWuJ2V4L2rdpPXzA5GiBx8eFkujJpDV+20hNzxhIYvoLxC1tqfejDVq9qNM7g==", + "license": "MIT", + "dependencies": { + "@newrelic/rrdom": "^1.0.1", + "@newrelic/rrweb-snapshot": "^1.0.1", + "@newrelic/rrweb-types": "^1.0.1", + "@newrelic/rrweb-utils": "^1.0.1", + "@types/css-font-loading-module": "0.0.7", + "@xstate/fsm": "^1.4.0", + "base64-arraybuffer": "^1.0.1", + "mitt": "^3.0.0" + } + }, + "node_modules/@newrelic/rrweb-snapshot": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@newrelic/rrweb-snapshot/-/rrweb-snapshot-1.0.1.tgz", + "integrity": "sha512-nOx5UqbRkc0g5rbX1JeVUi3Qnb7QDvGsuxKVo2ZbxHVrCjW8nwM/jsHKpNVZ+1mf95Nmhoxzu4pZIOXp4Dt4ZQ==", + "license": "MIT", + "dependencies": { + "postcss": "^8.4.38" + } + }, + "node_modules/@newrelic/rrweb-types": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@newrelic/rrweb-types/-/rrweb-types-1.0.1.tgz", + "integrity": "sha512-NPllHLTkmXyRNMwItuCl3kOQvWUH7Y6homnxnHDgINLsM2ohRYuQyN32UssAV1zi7JqDgCszsK4X/47+J8hyKg==", + "license": "MIT" + }, + "node_modules/@newrelic/rrweb-utils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@newrelic/rrweb-utils/-/rrweb-utils-1.0.1.tgz", + "integrity": "sha512-2twM2sR6LQWWUZOqXyWR27eREqIyIfx4PKivAt9vsYrxh1M32dWs6zYv4f/d397FweVkWT00cvxo3w03kKnQcw==", + "license": "MIT" + }, "node_modules/@ngtools/webpack": { "version": "19.2.17", "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-19.2.17.tgz", @@ -7994,6 +8055,12 @@ "@types/node": "*" } }, + "node_modules/@types/css-font-loading-module": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/@types/css-font-loading-module/-/css-font-loading-module-0.0.7.tgz", + "integrity": "sha512-nl09VhutdjINdWyXxHWN/w9zlNCfr60JUqJbd24YXUuCwgeL0TpFSdElCwb6cxfB6ybE19Gjj4g0jsgkXxKv1Q==", + "license": "MIT" + }, "node_modules/@types/eslint": { "version": "9.6.1", "resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-9.6.1.tgz", @@ -9050,6 +9117,12 @@ "@xtuc/long": "4.2.2" } }, + "node_modules/@xstate/fsm": { + "version": "1.6.5", + "resolved": "https://registry.npmjs.org/@xstate/fsm/-/fsm-1.6.5.tgz", + "integrity": "sha512-b5o1I6aLNeYlU/3CPlj/Z91ybk1gUsKT+5NAJI+2W4UjvS5KLG28K9v5UvNoFVjHV8PajVZ00RH3vnjyQO7ZAw==", + "license": "MIT" + }, "node_modules/@xtuc/ieee754": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@xtuc/ieee754/-/ieee754-1.2.0.tgz", @@ -9976,6 +10049,15 @@ "dev": true, "license": "MIT" }, + "node_modules/base64-arraybuffer": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz", + "integrity": "sha512-I3yl4r9QB5ZRY3XuJVEPfc2XhZO6YweFPI+UovAzn+8/hb3oJ6lnysaFcjVpkCPfVWFUDvoZ8kmVDP7WyRtYtQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, "node_modules/base64-js": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", @@ -13641,6 +13723,12 @@ "node-fetch": "~2.6.1" } }, + "node_modules/fflate": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.2.tgz", + "integrity": "sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==", + "license": "MIT" + }, "node_modules/file-entry-cache": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz", @@ -18842,6 +18930,12 @@ "node": ">= 18" } }, + "node_modules/mitt": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mitt/-/mitt-3.0.1.tgz", + "integrity": "sha512-vKivATfr97l2/QBCYAkXYDbrIWPM2IIKEl7YPhjCvKlG3kE2gm+uBo6nEXK3M5/Ffh/FLpKExzOQ3JJoJGFKBw==", + "license": "MIT" + }, "node_modules/mkdirp": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", @@ -18991,7 +19085,6 @@ "version": "3.3.11", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz", "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==", - "dev": true, "funding": [ { "type": "github", @@ -20240,7 +20333,6 @@ "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, "license": "ISC" }, "node_modules/picomatch": { @@ -20368,7 +20460,6 @@ "version": "8.5.2", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.2.tgz", "integrity": "sha512-MjOadfU3Ys9KYoX0AdkBlFEF1Vx37uCCeN4ZHnmwm9FfpbsGWMZeBLMmmpY+6Ocqod7mkdZ0DT31OlbsFrLlkA==", - "dev": true, "funding": [ { "type": "opencollective", @@ -22666,7 +22757,6 @@ "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -25008,6 +25098,12 @@ "license": "MIT", "optional": true }, + "node_modules/web-vitals": { + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-4.2.4.tgz", + "integrity": "sha512-r4DIlprAGwJ7YM11VZp4R884m0Vmgr6EAKe3P+kO0PPj3Unqyvv59rczf6UiGcb9Z8QxZVcqKNwv/g0WNdWwsw==", + "license": "Apache-2.0" + }, "node_modules/webidl-conversions": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", diff --git a/package.json b/package.json index 190ded296..dc2585412 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "@citation-js/core": "^0.7.18", "@citation-js/plugin-csl": "^0.7.18", "@fortawesome/fontawesome-free": "^6.7.2", + "@newrelic/browser-agent": "^1.301.0", "@ngx-translate/core": "^16.0.4", "@ngx-translate/http-loader": "^16.0.1", "@ngxs/devtools-plugin": "^19.0.0", diff --git a/src/app/core/provider/application.initialization.provider.ts b/src/app/core/provider/application.initialization.provider.ts index 9d7c7a406..58306deb0 100644 --- a/src/app/core/provider/application.initialization.provider.ts +++ b/src/app/core/provider/application.initialization.provider.ts @@ -4,6 +4,7 @@ import { OSFConfigService } from '@core/services/osf-config.service'; import { ENVIRONMENT } from './environment.provider'; +import { BrowserAgent } from '@newrelic/browser-agent/loaders/browser-agent'; import * as Sentry from '@sentry/angular'; import { GoogleTagManagerConfiguration } from 'angular-google-tag-manager'; @@ -25,6 +26,7 @@ export function initializeApplication() { await configService.load(); const googleTagManagerId = environment.googleTagManagerId; + if (googleTagManagerId) { googleTagManagerConfiguration.set({ id: googleTagManagerId }); } @@ -41,6 +43,12 @@ export function initializeApplication() { integrations: [], }); } + + const { enabled, ...newRelicConfig } = environment.newRelic; + + if (enabled) { + new BrowserAgent(newRelicConfig); + } }; } diff --git a/src/app/shared/models/environment.model.ts b/src/app/shared/models/environment.model.ts index dbcd2ba2a..a50e468b1 100644 --- a/src/app/shared/models/environment.model.ts +++ b/src/app/shared/models/environment.model.ts @@ -13,7 +13,7 @@ export interface EnvironmentModel { defaultProvider: string; dataciteTrackerRepoId: string | null; dataciteTrackerAddress: string; - + newRelic: NewRelicConfig; activityLogs?: { pageSize?: number; }; @@ -50,3 +50,27 @@ export interface EnvironmentModel { */ googleFilePickerAppId: number; } + +interface NewRelicConfig { + enabled: boolean; + init: { + distributed_tracing: { enabled: boolean }; + performance: { capture_measures: boolean }; + privacy: { cookies_enabled: boolean }; + ajax: { deny_list: string[] }; + }; + info: { + beacon: string; + errorBeacon: string; + licenseKey: string; + applicationID: string; + sa: number; + }; + loader_config: { + accountID: string; + trustKey: string; + agentID: string; + licenseKey: string; + applicationID: string; + }; +} diff --git a/src/assets/config/template.json b/src/assets/config/template.json index 3ea74f05f..594d61caa 100644 --- a/src/assets/config/template.json +++ b/src/assets/config/template.json @@ -1,12 +1,38 @@ { "webUrl": "", "apiDomainUrl": "", + "shareTroveUrl": "", "addonsApiUrl": "", + "funderApiUrl": "", "casUrl": "", "recaptchaSiteKey": "", - "dataciteTrackerRepoId": "", + "dataciteTrackerRepoId": null, + "dataciteTrackerAddress": "", "sentryDsn": "", "googleTagManagerId": "", "googleFilePickerApiKey": "", - "googleFilePickerAppId": 0 + "googleFilePickerAppId": 0, + "newRelic": { + "enabled": false, + "init": { + "distributed_tracing": { "enabled": false }, + "performance": { "capture_measures": false }, + "privacy": { "cookies_enabled": true }, + "ajax": { "deny_list": [""] } + }, + "info": { + "beacon": "", + "errorBeacon": "", + "licenseKey": "", + "applicationID": "", + "sa": 1 + }, + "loader_config": { + "accountID": "", + "trustKey": "", + "agentID": "", + "licenseKey": "", + "applicationID": "" + } + } } diff --git a/src/environments/environment.development.ts b/src/environments/environment.development.ts index 4ddc9b332..6ba08f8d2 100644 --- a/src/environments/environment.development.ts +++ b/src/environments/environment.development.ts @@ -13,11 +13,11 @@ export const environment = { /** * Base URL of the OSF web application. */ - webUrl: 'https://staging4.osf.io', + webUrl: 'https://staging3.osf.io', /** * Domain URL used for JSON:API v2 services. */ - apiDomainUrl: 'https://api.staging4.osf.io', + apiDomainUrl: 'https://api.staging3.osf.io', /** * Base URL for SHARE discovery search (Trove). */ @@ -25,7 +25,7 @@ export const environment = { /** * URL for the OSF Addons API (v1). */ - addonsApiUrl: 'https://addons.staging4.osf.io/v1', + addonsApiUrl: 'https://addons.staging3.osf.io/v1', /** * API endpoint for funder metadata resolution via Crossref. */ @@ -33,7 +33,7 @@ export const environment = { /** * URL for OSF Central Authentication Service (CAS). */ - casUrl: 'https://accounts.staging4.osf.io', + casUrl: 'https://accounts.staging3.osf.io', /** * Site key used for reCAPTCHA v2 validation in staging. */ @@ -56,4 +56,27 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', + newRelic: { + enabled: false, + init: { + distributed_tracing: { enabled: true }, + performance: { capture_measures: true }, + privacy: { cookies_enabled: true }, + ajax: { deny_list: ['bam.nr-data.net'] }, + }, + info: { + beacon: 'bam.nr-data.net', + errorBeacon: 'bam.nr-data.net', + licenseKey: '704513e63b', + applicationID: '1835137194', + sa: 1, + }, + loader_config: { + accountID: '772413', + trustKey: '772413', + agentID: '1835137194', + licenseKey: '704513e63b', + applicationID: '1835137194', + }, + }, }; diff --git a/src/environments/environment.docker.ts b/src/environments/environment.docker.ts index 58d9fe680..57ae0da52 100644 --- a/src/environments/environment.docker.ts +++ b/src/environments/environment.docker.ts @@ -13,4 +13,31 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', + newRelic: { + enabled: false, + init: { + distributed_tracing: { enabled: false }, + performance: { capture_measures: false }, + privacy: { cookies_enabled: true }, + ajax: { deny_list: ['bam.nr-data.net'] }, + }, + info: { + beacon: 'bam.nr-data.net', + errorBeacon: 'bam.nr-data.net', + licenseKey: '704513e63b', + applicationID: '1835137194', + sa: 1, + }, + loader_config: { + accountID: '772413', + trustKey: '772413', + agentID: '1835137194', + licenseKey: '704513e63b', + applicationID: '1835137194', + }, + }, + sentryDsn: '', + googleTagManagerId: '', + googleFilePickerApiKey: '', + googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.staging.ts b/src/environments/environment.staging.ts index 8473fe0a9..9da9441de 100644 --- a/src/environments/environment.staging.ts +++ b/src/environments/environment.staging.ts @@ -56,4 +56,31 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', + newRelic: { + enabled: true, + init: { + distributed_tracing: { enabled: true }, + performance: { capture_measures: true }, + privacy: { cookies_enabled: true }, + ajax: { deny_list: ['bam.nr-data.net'] }, + }, + info: { + beacon: 'bam.nr-data.net', + errorBeacon: 'bam.nr-data.net', + licenseKey: '704513e63b', + applicationID: '1835137194', + sa: 1, + }, + loader_config: { + accountID: '772413', + trustKey: '772413', + agentID: '1835137194', + licenseKey: '704513e63b', + applicationID: '1835137194', + }, + }, + sentryDsn: '', + googleTagManagerId: '', + googleFilePickerApiKey: '', + googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.test-osf.ts b/src/environments/environment.test-osf.ts index 9d9b1aca7..e6a6c8c2f 100644 --- a/src/environments/environment.test-osf.ts +++ b/src/environments/environment.test-osf.ts @@ -16,4 +16,31 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', + newRelic: { + enabled: false, + init: { + distributed_tracing: { enabled: false }, + performance: { capture_measures: false }, + privacy: { cookies_enabled: true }, + ajax: { deny_list: ['bam.nr-data.net'] }, + }, + info: { + beacon: 'bam.nr-data.net', + errorBeacon: 'bam.nr-data.net', + licenseKey: '704513e63b', + applicationID: '1835137194', + sa: 1, + }, + loader_config: { + accountID: '772413', + trustKey: '772413', + agentID: '1835137194', + licenseKey: '704513e63b', + applicationID: '1835137194', + }, + }, + sentryDsn: '', + googleTagManagerId: '', + googleFilePickerApiKey: '', + googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.test.ts b/src/environments/environment.test.ts index eaa045a52..c72394d75 100644 --- a/src/environments/environment.test.ts +++ b/src/environments/environment.test.ts @@ -16,4 +16,31 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', + newRelic: { + enabled: false, + init: { + distributed_tracing: { enabled: false }, + performance: { capture_measures: false }, + privacy: { cookies_enabled: true }, + ajax: { deny_list: ['bam.nr-data.net'] }, + }, + info: { + beacon: 'bam.nr-data.net', + errorBeacon: 'bam.nr-data.net', + licenseKey: '704513e63b', + applicationID: '1835137194', + sa: 1, + }, + loader_config: { + accountID: '772413', + trustKey: '772413', + agentID: '1835137194', + licenseKey: '704513e63b', + applicationID: '1835137194', + }, + }, + sentryDsn: '', + googleTagManagerId: '', + googleFilePickerApiKey: '', + googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 8473fe0a9..9da9441de 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -56,4 +56,31 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', + newRelic: { + enabled: true, + init: { + distributed_tracing: { enabled: true }, + performance: { capture_measures: true }, + privacy: { cookies_enabled: true }, + ajax: { deny_list: ['bam.nr-data.net'] }, + }, + info: { + beacon: 'bam.nr-data.net', + errorBeacon: 'bam.nr-data.net', + licenseKey: '704513e63b', + applicationID: '1835137194', + sa: 1, + }, + loader_config: { + accountID: '772413', + trustKey: '772413', + agentID: '1835137194', + licenseKey: '704513e63b', + applicationID: '1835137194', + }, + }, + sentryDsn: '', + googleTagManagerId: '', + googleFilePickerApiKey: '', + googleFilePickerAppId: 0, }; diff --git a/src/index.html b/src/index.html index 5c31b5b48..bf35c18ca 100644 --- a/src/index.html +++ b/src/index.html @@ -4,10 +4,10 @@ OSF + - - + From 99331a452645e3206fbc00eab533eecdccaf45e1 Mon Sep 17 00:00:00 2001 From: nsemets Date: Thu, 23 Oct 2025 16:04:04 +0300 Subject: [PATCH 2/2] fix(new-relic): updated env variables --- .../application.initialization.provider.ts | 6 ++--- src/environments/environment.development.ts | 23 ---------------- src/environments/environment.docker.ts | 27 ------------------- src/environments/environment.staging.ts | 27 ------------------- src/environments/environment.test-osf.ts | 27 ------------------- src/environments/environment.test.ts | 27 ------------------- src/environments/environment.ts | 27 ------------------- 7 files changed, 2 insertions(+), 162 deletions(-) diff --git a/src/app/core/provider/application.initialization.provider.ts b/src/app/core/provider/application.initialization.provider.ts index 58306deb0..15adb0f2e 100644 --- a/src/app/core/provider/application.initialization.provider.ts +++ b/src/app/core/provider/application.initialization.provider.ts @@ -44,10 +44,8 @@ export function initializeApplication() { }); } - const { enabled, ...newRelicConfig } = environment.newRelic; - - if (enabled) { - new BrowserAgent(newRelicConfig); + if (environment.newRelic?.enabled) { + new BrowserAgent(environment.newRelic); } }; } diff --git a/src/environments/environment.development.ts b/src/environments/environment.development.ts index 6ba08f8d2..cf309511b 100644 --- a/src/environments/environment.development.ts +++ b/src/environments/environment.development.ts @@ -56,27 +56,4 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', - newRelic: { - enabled: false, - init: { - distributed_tracing: { enabled: true }, - performance: { capture_measures: true }, - privacy: { cookies_enabled: true }, - ajax: { deny_list: ['bam.nr-data.net'] }, - }, - info: { - beacon: 'bam.nr-data.net', - errorBeacon: 'bam.nr-data.net', - licenseKey: '704513e63b', - applicationID: '1835137194', - sa: 1, - }, - loader_config: { - accountID: '772413', - trustKey: '772413', - agentID: '1835137194', - licenseKey: '704513e63b', - applicationID: '1835137194', - }, - }, }; diff --git a/src/environments/environment.docker.ts b/src/environments/environment.docker.ts index 57ae0da52..58d9fe680 100644 --- a/src/environments/environment.docker.ts +++ b/src/environments/environment.docker.ts @@ -13,31 +13,4 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', - newRelic: { - enabled: false, - init: { - distributed_tracing: { enabled: false }, - performance: { capture_measures: false }, - privacy: { cookies_enabled: true }, - ajax: { deny_list: ['bam.nr-data.net'] }, - }, - info: { - beacon: 'bam.nr-data.net', - errorBeacon: 'bam.nr-data.net', - licenseKey: '704513e63b', - applicationID: '1835137194', - sa: 1, - }, - loader_config: { - accountID: '772413', - trustKey: '772413', - agentID: '1835137194', - licenseKey: '704513e63b', - applicationID: '1835137194', - }, - }, - sentryDsn: '', - googleTagManagerId: '', - googleFilePickerApiKey: '', - googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.staging.ts b/src/environments/environment.staging.ts index 9da9441de..8473fe0a9 100644 --- a/src/environments/environment.staging.ts +++ b/src/environments/environment.staging.ts @@ -56,31 +56,4 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', - newRelic: { - enabled: true, - init: { - distributed_tracing: { enabled: true }, - performance: { capture_measures: true }, - privacy: { cookies_enabled: true }, - ajax: { deny_list: ['bam.nr-data.net'] }, - }, - info: { - beacon: 'bam.nr-data.net', - errorBeacon: 'bam.nr-data.net', - licenseKey: '704513e63b', - applicationID: '1835137194', - sa: 1, - }, - loader_config: { - accountID: '772413', - trustKey: '772413', - agentID: '1835137194', - licenseKey: '704513e63b', - applicationID: '1835137194', - }, - }, - sentryDsn: '', - googleTagManagerId: '', - googleFilePickerApiKey: '', - googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.test-osf.ts b/src/environments/environment.test-osf.ts index e6a6c8c2f..9d9b1aca7 100644 --- a/src/environments/environment.test-osf.ts +++ b/src/environments/environment.test-osf.ts @@ -16,31 +16,4 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', - newRelic: { - enabled: false, - init: { - distributed_tracing: { enabled: false }, - performance: { capture_measures: false }, - privacy: { cookies_enabled: true }, - ajax: { deny_list: ['bam.nr-data.net'] }, - }, - info: { - beacon: 'bam.nr-data.net', - errorBeacon: 'bam.nr-data.net', - licenseKey: '704513e63b', - applicationID: '1835137194', - sa: 1, - }, - loader_config: { - accountID: '772413', - trustKey: '772413', - agentID: '1835137194', - licenseKey: '704513e63b', - applicationID: '1835137194', - }, - }, - sentryDsn: '', - googleTagManagerId: '', - googleFilePickerApiKey: '', - googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.test.ts b/src/environments/environment.test.ts index c72394d75..eaa045a52 100644 --- a/src/environments/environment.test.ts +++ b/src/environments/environment.test.ts @@ -16,31 +16,4 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', - newRelic: { - enabled: false, - init: { - distributed_tracing: { enabled: false }, - performance: { capture_measures: false }, - privacy: { cookies_enabled: true }, - ajax: { deny_list: ['bam.nr-data.net'] }, - }, - info: { - beacon: 'bam.nr-data.net', - errorBeacon: 'bam.nr-data.net', - licenseKey: '704513e63b', - applicationID: '1835137194', - sa: 1, - }, - loader_config: { - accountID: '772413', - trustKey: '772413', - agentID: '1835137194', - licenseKey: '704513e63b', - applicationID: '1835137194', - }, - }, - sentryDsn: '', - googleTagManagerId: '', - googleFilePickerApiKey: '', - googleFilePickerAppId: 0, }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 9da9441de..8473fe0a9 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -56,31 +56,4 @@ export const environment = { defaultProvider: 'osf', dataciteTrackerRepoId: null, dataciteTrackerAddress: 'https://analytics.datacite.org/api/metric', - newRelic: { - enabled: true, - init: { - distributed_tracing: { enabled: true }, - performance: { capture_measures: true }, - privacy: { cookies_enabled: true }, - ajax: { deny_list: ['bam.nr-data.net'] }, - }, - info: { - beacon: 'bam.nr-data.net', - errorBeacon: 'bam.nr-data.net', - licenseKey: '704513e63b', - applicationID: '1835137194', - sa: 1, - }, - loader_config: { - accountID: '772413', - trustKey: '772413', - agentID: '1835137194', - licenseKey: '704513e63b', - applicationID: '1835137194', - }, - }, - sentryDsn: '', - googleTagManagerId: '', - googleFilePickerApiKey: '', - googleFilePickerAppId: 0, };