code: def remove_stacktrace_locals(client, event):
      
      func = lambda frame: frame.pop("vars", None)
      return _process_stack_frames(event, func)
docs: Removes local variables from any frames.
  
      :param client: an ElasticAPM client
      :param event: a transaction or error event
      :return: The modified event