code: def sanitize_stacktrace_locals(client, event):
      
  
      def func(frame):
          if "vars" in frame:
              frame["vars"] = varmap(_sanitize, frame["vars"])
  
      return _process_stack_frames(event, func)
docs: Sanitizes local variables in all frames
  
      :param client: an ElasticAPM client
      :param event: a transaction or error event
      :return: The modified event