Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1013 Bytes

File metadata and controls

20 lines (16 loc) · 1013 Bytes

application-insights-angular-demo

Monitoring a minimal Angular App with the Application Insights Web SDK

based on a minimal angular 8 bootstrap

npm install -g @angular/cli
ng new insights
cd insights
ng update @angular/cli @angular/core
ng update
ng update rxjs
npm audit fix --force
npm i @microsoft/applicationinsights-web
ng g service services/common/ApplicationInsights

after that modify the ApplicationInsights.service, app.module.ts as described in Julien Dubois - Using Azure Application Insights with Angular (5/7) and additionally show the changes required in app.component.ts so that the service is actually used.

As bonus: different instrumentationKeys for different environments.