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?
Also try setting enableCorsCorrelation: true
https://learn.microsoft.com/en-au/azure/azure-monitor/app/javascript#configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With