Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve sanitizer approach #10646

Open
surgupta-msft opened this issue Nov 21, 2024 · 0 comments
Open

Improve sanitizer approach #10646

surgupta-msft opened this issue Nov 21, 2024 · 0 comments

Comments

@surgupta-msft
Copy link
Contributor

surgupta-msft commented Nov 21, 2024

What problem would the feature you're requesting solve? Please describe.

We need to simplify the class Sanitizer.cs to improve performance. Currently it is using both regex approach and string comparison. We can optimize it to use either of these approaches. Note that the method Sanitize() gets executed a lot as it examines the logs and sanitizes any secret related strings. Also, using regex comparison is very expensive. For that we can use .Net feature GeneratedRegex for performance - link

Documentation here - Link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant