This repository has code for the Web Application SDK for Application Insights. Application Insights is a service that allows developers ensure their applications are available, performing, and succeeding. This SDK provides the ability to auto-collect data such as dependency calls, requests and server performance counters in .NET web applications.
To send data to Application Insights, you need an instrumentation key that you can get by creating an Application Insights resource in the Azure Preview Portal or adding Application Insights to your project in Visual Studio.
To add Application Insights to your project in Visual Studio
- If it's a new web project, make sure "Add Application Insights to Project" is selected.
- If it's an existing project, right click the project in Solution Explorer, and choose Add Application Insights.
For detailed instructions, see this article.
Run your project, and then open your Application Insights resource in the Azure Preview Portal and look for events. Learn more.
The latest stable and pre-release versions of this library are available on NuGet.
- Visual Studio 2015 Community or Enterprise
- Clone the Git repository
- Open Visual Studio solution (devenv Web\Microsoft.ApplicationInsights.Web.sln)
- Build solution in Visual Studio
If you prefer using build scripts, run buildDebug.cmd
or buildRelease.cmd
- master contains the latest published release located on NuGet.
- develop contains the code for the next release.
We strongly welcome and encourage contributions to this project. Please read the contributor's guide. If making a large change we request that you open an issue first. If we agree that an issue is a bug, we'll add the "bug" label, and issues that we plan to fix are labeled with an iteration number. We follow the Git Flow approach to branching.