-
Notifications
You must be signed in to change notification settings - Fork 10.6k
HttpLogging redaction and enrichment #31844
Copy link
Copy link
Closed
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
Milestone
Metadata
Metadata
Assignees
Labels
api-approvedAPI was approved in API review, it can be implementedAPI was approved in API review, it can be implementedarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewares
Type
Fields
Give feedbackNo fields configured for issues without a type.
We need the ability to allow users to configure and customize what is logged for a request and response. For example if they would like to modify a header value that is logged to remove PII, or adding another key and value to the log.
Our current idea is to have a Func that people can implement that would take a context, and allow returning any KeyValuePair to be logged.
Currently, we were thinking of adding the extension point to where we log headers:
General API shape
Example: