def METHOD_NAME(self, error, extra=None):
    self.mmap.measure_int_put(self.error_measure, 1)
    self.mmap.record()
    self.azure_logger.exception(
        "Error happened when running {}: {}. Extra info: {}".format(self.name, repr(error), extra)
    )