def METHOD_NAME(self, record: logging.LogRecord) -> None:
    if self.shortcut:
        logger.info('oci-request-reporting to elasticsearch was shortcut due to previous error')
        return
    method = record.__dict__.get('method')
    url = record.__dict__.get('url')
    try:
        self.es_client.store_document(
            index='oci_request',
            body={
                'method': method,
                'url': url,
                'stacktrace': traceback.format_stack(),
            }
        )
    except:
        logger.warning(traceback.format_exc())
        logger.warning('could not send oci request log to elastic search')
        self.shortcut = True