Resource Invoker Instrumentation
- Default setting for ASP.NET Core 2.x.
- For ASP.NET Core 3.x and 5.0, set the node property
aspdotnet-core-instrumentation (string) = "ResourceInvoker"to enable it.
This instrumentation occurs at the end of the pipeline just before it calls the controller action or page handler. This applies to Razor Page handlers, and MVC and Web API controller actions.
The advantage is that only actual action code is instrumented, and the .NET Agent instrumentation does not execute for any other web requests such as: static files and not found paths ( Error Code 404
This is the most lightweight instrumentation option. It is the optimal choice for most ASP.NET Core applications, especially where minimal or no customization was applied to the middleware pipeline from the default application code.