Application Insights Basics

0

Category :

What is Application Insights?

an extensible Application Performance Management (APM) service for web developers
monitor your live web application.
automatically detect performance anomalies. It includes powerful analytics tools to help you diagnose issues and to understand what users actually do with your app.
It works for apps on a wide variety of platforms including .NET, Node.js and J2EE, hosted on-premises or in the cloud.
has connection points to a variety of development tools. It can monitor and analyze telemetry from mobile apps

How does Application Insights work?

You install a small instrumentation package in your application, and set up an Application Insights resource in the Microsoft Azure portal.
The instrumentation monitors your app and sends telemetry data to the portal.
You can instrument not only the web service application, but also any background components, and the JavaScript in the web pages themselves.
You can also set up web tests that periodically send synthetic requests to your web service.

Method Used for
TrackPageView Pages, screens, blades, or forms.
TrackEvent User actions and other events. Used to track user behavior or to monitor performance.
TrackMetric Performance measurements such as queue lengths not related to specific events.
TrackException Logging exceptions for diagnosis. Trace where they occur in relation to other events and examine stack traces.
TrackRequest Logging the frequency and duration of server requests for performance analysis.
TrackTrace Diagnostic log messages. You can also capture third-party logs.
TrackDependency Logging the duration and frequency of calls to external components that your app depends on.

You can attach properties and metrics to most of these telemetry calls.+


my thanks to:
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-overview
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-api-custom-events-metrics