Gurpreet Singh
Gurpreet Singh

Reputation: 415

'Request-Id' & 'Request-Context' not getting added

I am creating a angular app and trying to add appinsights to the angular app. The config is set as follows:

private config: Microsoft.ApplicationInsights.IConfig = {
    instrumentationKey: environment.appInsights.instrumentationKey,
    disableCorrelationHeaders: false,
    enableDebug : true,
    verboseLogging : true
}

and app insights is initialized as follows in a angular service.

if (!AppInsights.config) {
  AppInsights.downloadAndSetup(this.config);
}

But I am not seeing dependency calls having the following headers 'Request-Id' 'Request-Context'

Was anyone successful in getting this to work?

Upvotes: 3

Views: 1518

Answers (1)

Stuart Hallows
Stuart Hallows

Reputation: 8953

Also try setting enableCorsCorrelation: true

https://learn.microsoft.com/en-au/azure/azure-monitor/app/javascript#configuration

Upvotes: 3

Related Questions