-
Notifications
You must be signed in to change notification settings - Fork 123
Support setting request operation name based on executing Razor Page #430
Comments
Why do you want page file name instead of it's action descriptor display name? ( |
Good question. What do you think folks would find more useful? That's what it really comes down to. |
In case of pages having file name is nice, but it's very inconsistent with what we do for views. |
But I think that makes sense given the different way the route info is constructed, i.e. from the page file. |
Personally I would expect to see the route that a user sees rather than the backing implementation details but I don't know if that view is representative of other users. |
With file name operation name would look like I implemented the route values way to start with, mostly because it's simpler and more consistent. |
Fair enough. |
Currently, the request telemetry doesn't construct a friendly operation name for requests served by Razor Pages in ASP.NET Core 2.0. The
MvcDiagnosticsListener
should be updated to grab details of the current executing page (if indeed it's a page) and use that to construct the request operation name, e.g. /Pages/Index.cshtmlThe text was updated successfully, but these errors were encountered: