@@ -44,8 +44,31 @@ export function initializeApplication() {
4444 } ) ;
4545 }
4646
47- if ( environment . newRelic ?. enabled ) {
48- new BrowserAgent ( environment . newRelic ) ;
47+ if ( environment . newRelicEnabled ) {
48+ const newRelicConfig = {
49+ enabled : environment . newRelicEnabled ,
50+ init : {
51+ distributed_tracing : { enabled : environment . newRelicInitDistributedTracingEnabled } ,
52+ performance : { capture_measures : environment . newRelicInitPerformanceCaptureMeasures } ,
53+ privacy : { cookies_enabled : environment . newRelicInitPrivacyCookiesEnabled } ,
54+ ajax : { deny_list : environment . newRelicInitAjaxDenyList } ,
55+ } ,
56+ info : {
57+ beacon : environment . newRelicInfoBeacon ,
58+ errorBeacon : environment . newRelicInfoErrorBeacon ,
59+ licenseKey : environment . newRelicInfoLicenseKey ,
60+ applicationID : environment . newRelicInfoApplicationID ,
61+ sa : environment . newRelicInfoSa ,
62+ } ,
63+ loader_config : {
64+ accountID : environment . newRelicLoaderConfigAccountID ,
65+ trustKey : environment . newRelicLoaderConfigTrustKey ,
66+ agentID : environment . newRelicLoaderConfigAgengID ,
67+ licenseKey : environment . newRelicLoaderConfigLicenseKey ,
68+ applicationID : environment . newRelicLoaderConfigApplicationID ,
69+ } ,
70+ } ;
71+ new BrowserAgent ( newRelicConfig ) ;
4972 }
5073 } ;
5174}
0 commit comments