Application Insights: Exception Telemetry
Dec 12, 2014Soubhagya Dash (MSFT)
Summary
This post details how to capture exception telemetry for various .NET application types (MVC, Web API, WCF, Web Forms/Pages) by overriding default error handling and using the TrackException API to send exceptions that the HTTPModule might miss, especially when CustomErrors is not 'Off'. It provides code examples for MVC (versions 2, 3, 4/5), Web API 1.x, and outlines approaches for Web API 2.x, WCF, and Web Forms/Pages.
More from the Application Insights Deployment Markers trail
- Issue with using Application Insights with load tests
- Monitor Team Services web extensions with Visual Studio Application Insights
- Getting Application Insights counters with Cloud-based Load Testing
- Application Insights: Choose your own Performance Counters
- Introducing the Application Insights SDK for Java