NTP-11577 | Metadata added

This commit is contained in:
yashmantri
2024-11-14 15:34:39 +05:30
parent b8bfb13673
commit 9fc75cd1f4

View File

@@ -4,6 +4,7 @@ import { addClickstreamEvent } from '../../services/clickstreamEventService';
import { CLICKSTREAM_EVENT_NAMES } from '../../common/Constants';
import { getAppVersion } from './commonFunctions';
import { createTransport } from '@sentry/core';
import { GLOBAL } from '@constants/Global';
function makeFetchTransport(options: any): any {
function makeRequest(request: any) {
@@ -40,7 +41,12 @@ export async function initSentry() {
...event.extra,
release_id: getAppVersion(),
alfredSessionId: '',
metadata: {},
metadata: {
agentId: GLOBAL?.AGENT_ID,
deviceId: GLOBAL?.DEVICE_ID,
isImpersonated: GLOBAL?.IS_IMPERSONATED,
buildFlavour: GLOBAL.BUILD_FLAVOUR,
},
};
return event;
},