[AspNetCore Instrumentation] Ability to scrub (redact or encrypt) sensitive information from exception stack-trace #1794
Labels
comp:instrumentation.aspnetcore
Things related to OpenTelemetry.Instrumentation.AspNetCore
enhancement
New feature or request
Feature Request
Make the instrumentation library more flexible to allow scrubbing/redaction or encryption of sensitive information.
Is your feature request related to a problem?
AspNetCore instrumentation library currently has an option to record exceptions. When this is enabled then exception type, exception message and exception stack trace is captured. Stack-trace details may contain sensitive information which can result in privacy issues. When RecordException option is enabled the exception is added as activityevent to the activity which can't be modified by a custom processor further down the pipeline today.
Describe the solution you'd like:
We would like the ability to scrub sensitive information from stack trace. Possible solutions could be (not an exhaustive list, just some suggestions)
Describe alternatives you've considered.
The alternative is to not use the record exception functionality provided in the library and instead write custom one. This is not an ideal solution because we would essentially just be doing most of the work that's already present in the library but can't be used due to the limitation.
Additional Context
Leaking sensitive information in logs/traces or metrics is a huge concern for our enterprise so the ability to avoid this is super critical.
The text was updated successfully, but these errors were encountered: