code: def report_error_event(self, error_report):
          
          logger = self.logging_client.logger("errors")
          logger.log_struct(error_report)
docs: Report error payload.
  
          :type error_report: dict
          :param: error_report:
              dict payload of the error report formatted according to
              https://cloud.google.com/error-reporting/docs/formatting-error-messages
              This object should be built using
              :meth:~`google.cloud.error_reporting.client._build_error_report`