title | description | ms.date | ms.topic | ms.service |
---|---|---|---|---|
Azure Application Insights libraries for .NET |
Reference for Azure Application Insights libraries for .NET |
10/19/2017 |
reference |
application-insights |
Application Insights is an extensible monitoring & diagnostics service for web developers with powerful ad-hoc analytics capabilities. You can use the classes in the ApplicationInsights namespace to configure telemetry collection and send any custom telemetry from your applications that you want to monitor.
The Application Insights client SDK for .NET allows you to log event, aggregated data, exceptions, dependency, and metrics to Azure for future analysis.
Install the NuGet package directly from the Visual Studio Package Manager console or with the .NET Core CLI.
Install-Package Microsoft.ApplicationInsights
dotnet add package Microsoft.ApplicationInsights
This example tracks a custom event to Application Insights.
TelemetryClient client = new TelemetryClient();
client.TrackEvent("MyCustomEvent");
[!div class="nextstepaction"] Explore the client APIs
View the complete list of Azure Application Insights samples.