This repository was archived by the owner on Dec 14, 2018. It is now read-only.

Description
I was trying to move from wrapped views to DiagnosticSource for MVC profiling in ASP.NET Core, but I've come across a major difference in behavior.
Currently, DiagnosticSource.BeforeView and .AfterView are called for regular views (here):
DiagnosticSource.BeforeView(view, viewContext); await view.RenderAsync(viewContext); DiagnosticSource.AfterView(view, viewContext);
Compared to the RenderPartial (and Async, etc.) pipeline (here):
await viewEngineResult.View.RenderAsync(viewContext);
...it's not wrapped in DiagnosticSource. The result is that instead of a rich profiling tree I can narrow issues down in like this:

The best I can get is:

Was this an intentional decision?
- If so: why?
- If not: can I submit a PR to add the
.BeforeView and .AfterView calls?