dd-trace-java
dd-trace-java copied to clipboard
Add QueryObfuscator tests/benchmarks, fix for bearer
What Does This Do
- Added more tests and JMH benchmarks for QueryObfuscator.
- Fix for redaction of bearer tokens.
Motivation
I saw some potential performance optimizations for the default QueryObfuscator regular expression (not included in this PR), so I added these tests and benchmark to try them.
While testing this, I noticed that Bearer token forms were not fully redacted, fixed this case.
Additional Notes
I'll try to follow up with the optimized regular expression.