dd-trace-java icon indicating copy to clipboard operation
dd-trace-java copied to clipboard

Add QueryObfuscator tests/benchmarks, fix for bearer

Open smola opened this issue 3 years ago • 0 comments

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.

smola avatar Sep 02 '22 11:09 smola