Skip to content

Instantly share code, notes, and snippets.

@patkleef
Created March 13, 2017 19:19
Show Gist options
  • Save patkleef/2bfc7bad3e878eb4ca2211c5d33099b4 to your computer and use it in GitHub Desktop.
Save patkleef/2bfc7bad3e878eb4ca2211c5d33099b4 to your computer and use it in GitHub Desktop.
Application Insights Blog - ApplicationInsightsGlobal.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());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment