Skip to content

Unable to access RouteData from HttpRequest provided in EnrichWithHttpRequest. #4458

Answered by treyjones-ms
treyjones-ms asked this question in Q&A
Discussion options

You must be logged in to vote

It turns out, if I use the EnrichWithHttpResponse event, the HttpContext.Request object has the RouteData populated at that point. Now I have a new problem, there are separate log events generated from category Microsoft.AspNetCore.Hosting.Diagnostics and I need to figure out how to get the route data to update the Path state value to sanitize parameters.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@treyjones-ms
Comment options

Answer selected by treyjones-ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants