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.
- package/esm2020/lib/core/services/config/monkeyecx-logs-config.service.mjs +12 -6
- package/fesm2015/monkey-front-core.mjs +11 -5
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +11 -5
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/config/monkeyecx-logs-config.service.d.ts +1 -0
- package/monkey-front-core-0.0.552.tgz +0 -0
- package/package.json +2 -2
- package/monkey-front-core-0.0.550.tgz +0 -0
|
@@ -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
|
-
|
|
3913
|
-
|
|
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
|
-
|
|
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
|
}
|