Support for custom regex replacements
Thanks to @aeisenberg we now support a set of replacement options which can be used for custom redaction.
The reporter will now check every event for the set of regular expressions and replace them with the defined replacement strings. As with anything regex related this has the opportunity to cause significant performance degradation due to inefficient regular expressions.
This change is backwards compatible with previous versions, but does introduce a new optional parameter to the TelemetryReporter
in the form of a ReplacementOption list. The new typings can be found in the bundled .d.ts
file.