monkey-front-core 0.0.560 → 0.0.562
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 +15 -10
- package/fesm2015/monkey-front-core.mjs +14 -9
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +14 -9
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/monkey-front-core-0.0.562.tgz +0 -0
- package/package.json +2 -1
- package/monkey-front-core-0.0.560.tgz +0 -0
|
@@ -25,6 +25,7 @@ import { __decorate } from 'tslib';
|
|
|
25
25
|
import esCL from '@angular/common/locales/es-CL';
|
|
26
26
|
import esMX from '@angular/common/locales/es-MX';
|
|
27
27
|
import ptBr from '@angular/common/locales/pt';
|
|
28
|
+
import { datadogLogs } from '@datadog/browser-logs';
|
|
28
29
|
import { datadogRum } from '@datadog/browser-rum';
|
|
29
30
|
import * as i1$4 from '@angular/service-worker';
|
|
30
31
|
import { ServiceWorkerModule } from '@angular/service-worker';
|
|
@@ -3926,21 +3927,26 @@ class MonkeyEcxLogsConfigService {
|
|
|
3926
3927
|
defaultPrivacyLevel: 'mask-user-input'
|
|
3927
3928
|
});
|
|
3928
3929
|
datadogRum.startSessionReplayRecording();
|
|
3929
|
-
|
|
3930
|
+
datadogLogs.init({
|
|
3931
|
+
clientToken: environment?.dataDogClientToken,
|
|
3932
|
+
service: program?.token,
|
|
3933
|
+
site: 'datadoghq.com',
|
|
3934
|
+
env: `monkey-front-${identifyCode}-${environment.environment}`,
|
|
3935
|
+
version: configBootstrap?.version,
|
|
3936
|
+
trackSessionAcrossSubdomains: true,
|
|
3937
|
+
useSecureSessionCookie: true,
|
|
3938
|
+
forwardErrorsToLogs: true,
|
|
3939
|
+
sessionSampleRate: 100,
|
|
3940
|
+
forwardConsoleLogs: 'all'
|
|
3941
|
+
});
|
|
3930
3942
|
this.allSet = true;
|
|
3931
3943
|
}
|
|
3944
|
+
this.applyInfoToDataDog(environment);
|
|
3932
3945
|
}
|
|
3933
3946
|
async applyInfoToDataDog(environment) {
|
|
3934
3947
|
try {
|
|
3935
3948
|
const tokenStorage = this.injector.get(MonkeyEcxTokenStorageService);
|
|
3936
|
-
console.log('@@@@');
|
|
3937
|
-
console.log(tokenStorage);
|
|
3938
3949
|
const token = await tokenStorage.getToken();
|
|
3939
|
-
console.log('aply info to datadog');
|
|
3940
|
-
console.log(token);
|
|
3941
|
-
console.log(environment);
|
|
3942
|
-
console.log('#####');
|
|
3943
|
-
console.log(datadogRum.getUser());
|
|
3944
3950
|
if (token.accessToken && environment.dataDogApplicationId) {
|
|
3945
3951
|
const me = await tokenStorage.getMe();
|
|
3946
3952
|
const user = {
|
|
@@ -3953,7 +3959,6 @@ class MonkeyEcxLogsConfigService {
|
|
|
3953
3959
|
}
|
|
3954
3960
|
}
|
|
3955
3961
|
catch (e) {
|
|
3956
|
-
console.log(e);
|
|
3957
3962
|
// not to do
|
|
3958
3963
|
}
|
|
3959
3964
|
}
|