Class LogScrubber


  • public class LogScrubber
    extends java.lang.Object
    Implements log scrubbing, e.g. for removing PII.

    WARNING: THIS CLASS IS HIGHLY PERFORMANCE SENSITIVE

    Every RPC calls this class at least twice (once each for request + response). Be extremely careful not to increase latency. This class is an exception to the "premature optimization is the root of all evil" rule-of-thumb; we should be proactive about optimizing performance here.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MASK_PATTERN  
    • Method Detail

      • getInstance

        public static LogScrubber getInstance()
      • edit

        public java.lang.Object edit​(java.lang.Object input)
        Scrubs a given input. Only supports Message instances, all other objects are returned unmodified.