code: def sanitize_http_wsgi_env(client, event):
      
      try:
          env = event["context"]["request"]["env"]
          event["context"]["request"]["env"] = varmap(_sanitize, env)
      except (KeyError, TypeError):
          pass
      return event
docs: Sanitizes WSGI environment variables
  
      :param client: an ElasticAPM client
      :param event: a transaction or error event
      :return: The modified event