saschagottfried / application-insights-angular-demo

Monitoring a minimal Angular App with the Application Insights Web SDK

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Monitoring a minimal Angular App with the Application Insights Web SDK

License:MIT License


Languages

Language:TypeScript 75.2%Language:JavaScript 13.5%Language:HTML 10.7%Language:SCSS 0.6%