monkey-front-core 0.0.550 → 0.0.552

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3901,24 +3901,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
3901
3901
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxTokenStorageService }, { type: i1$1.TranslateService }, { type: MonkeyEcxErrorConfigService }]; } });
3902
3902
 
3903
3903
  class MonkeyEcxLogsConfigService {
3904
+ constructor() {
3905
+ this.allSet = false;
3906
+ }
3904
3907
  apply(params, configBootstrap, environment, identifyCode) {
3905
3908
  const { program, logs } = params;
3906
- if (logs?.enabled && environment.environment !== 'dev') {
3909
+ if (logs?.enabled && environment.environment !== 'dev' && !this.allSet) {
3907
3910
  datadogRum.init({
3908
3911
  applicationId: environment?.dataDogApplicationId,
3909
3912
  clientToken: environment?.dataDogClientToken,
3910
3913
  service: program?.token,
3911
3914
  site: 'datadoghq.com',
3912
- sampleRate: 100,
3913
- replaySampleRate: 100,
3915
+ sessionSampleRate: 100,
3916
+ sessionReplaySampleRate: 100,
3914
3917
  env: `monkey-front-${identifyCode}-${environment.environment}`,
3915
3918
  version: configBootstrap?.version,
3916
- trackInteractions: true,
3917
3919
  trackSessionAcrossSubdomains: true,
3918
3920
  useSecureSessionCookie: true,
3919
- useCrossSiteSessionCookie: true
3921
+ trackResources: true,
3922
+ trackLongTasks: true,
3923
+ trackUserInteractions: true,
3924
+ defaultPrivacyLevel: 'mask-user-input'
3920
3925
  });
3921
3926
  datadogRum.startSessionReplayRecording();
3927
+ this.allSet = true;
3922
3928
  }
3923
3929
  }
3924
3930
  }