Open Kahbazi opened 3 years ago
I think the value is low here and there's additional overhead for little value. Especially because most of the time there's no endpoint name metadata.
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.
Is your feature request related to a problem? Please describe.
Provide log scope for minimal APIs, the same as it is currently exists in MVC.
https://github.com/dotnet/aspnetcore/blob/8b30d862de6c9146f466061d51aa3f1414ee2337/src/Mvc/Mvc.Core/src/Infrastructure/ResourceInvoker.cs#L112
Describe the solution you'd like
Create a log scope with endpoint name from
IEndpointNameMetadata.EndpointName
in createdRequestDelegate
.Additional context
This could also be done in
EndpointRoutingMiddleware
which would cover all frameworks which are built onIEndpointRouteBuilder
.