HTTP Instrumentation

  • This setting is available for ASP.NET Core 2.x, 3.x, and 5.0 (as of .NET Agent 21.3).
  • Set the node property aspdotnet-core-instrumentation (string) = "HTTP" to enable it.

This instrumentation option instruments the full middleware pipeline by instrumenting every single web request. It provides the most visibility of all options. However, when enabling this option, you must consider:

  • MVC naming is not possible because the request URL has not been decoded by the routing middleware. It may not be an MVC request; if it is, then controller and action names have not been resolved. All business transactions will use the URL path as its name.
  • Because the .NET Agent instrumentation runs and inspects every web request (even requests that result with 404 Errors , and so on), it has a greater performance impact on the application. To understand the performance impact, you should test this option either in a pre-production environment, or on a limited node count before you enable the option for the entire tier or application.