NTP-11577 | Metadata added
This commit is contained in:
@@ -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;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user