Fix 1DS part A internal flag (#152515)

This commit is contained in:
Logan Ramos 2022-06-17 20:35:46 -04:00 committed by GitHub
parent 78597fd026
commit 5ffcfde11d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View file

@ -33,10 +33,10 @@ async function getClient(instrumentationKey: string): Promise<AppInsightsCore> {
appInsightsCore.initialize(coreConfig, []);
appInsightsCore.addTelemetryInitializer((envelope) => {
if (envelope.tags) {
// Sets it to be internal only based on Windows UTC flagging
envelope.tags['utc.flags'] = 0x0000811ECD;
}
envelope['ext'] = envelope['ext'] ?? {};
envelope['ext']['utc'] = envelope['ext']['utc'] ?? {};
// Sets it to be internal only based on Windows UTC flagging
envelope['ext']['utc']['flags'] = 0x0000811ECD;
});
return appInsightsCore;

View file

@ -67,10 +67,10 @@ async function getClient(instrumentationKey: string): Promise<AppInsightsCore> {
appInsightsCore.initialize(coreConfig, []);
appInsightsCore.addTelemetryInitializer((envelope) => {
if (envelope.tags) {
// Sets it to be internal only based on Windows UTC flagging
envelope.tags['utc.flags'] = 0x0000811ECD;
}
envelope['ext'] = envelope['ext'] ?? {};
envelope['ext']['utc'] = envelope['ext']['utc'] ?? {};
// Sets it to be internal only based on Windows UTC flagging
envelope['ext']['utc']['flags'] = 0x0000811ECD;
});
return appInsightsCore;