Last active
February 19, 2020 15:49
-
-
Save hd9/62147a7e075614acf082ef8b0407d180 to your computer and use it in GitHub Desktop.
Suppressing Application Insights telemetry on an ASP.NET web applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ********************************************** | |
// Fore more information, visit: | |
// https://blog.hildenco.com/2020/02/suppressing-application-insights.html | |
// ********************************************** | |
// add this on your Global.asax | |
var builder = TelemetryConfiguration.Active.DefaultTelemetrySink.TelemetryProcessorChainBuilder; | |
builder.Use((next) => new SuppressFaviconFilter(next)); | |
builder.Build(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment