Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'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?

like image 946
Gurpreet Singh Avatar asked Apr 05 '26 21:04

Gurpreet Singh


1 Answers

Also try setting enableCorsCorrelation: true

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

like image 124
Stuart Hallows Avatar answered Apr 08 '26 14:04

Stuart Hallows



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!