Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save patkleef/7b556e6425bd7233d358429ec26fb357 to your computer and use it in GitHub Desktop.
Save patkleef/7b556e6425bd7233d358429ec26fb357 to your computer and use it in GitHub Desktop.
Application Insights Blog - ApplicationInsightsTelemetryProcessorsGlobal.asax
protected void Application_Start()
{
AreaRegistration.RegisterAllAreas();
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
RouteConfig.RegisterRoutes(RouteTable.Routes);
BundleConfig.RegisterBundles(BundleTable.Bundles);
TelemetryConfiguration.Active.TelemetryInitializers.Add(new ClientIpHeaderTelemetryInitializer());
var builder = TelemetryConfiguration.Active.TelemetryProcessorChainBuilder;
builder.Use((next) => new NotFoundFilter(next));
builder.Build();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment