def get_new_connection(self, *args, **kwargs): connections_total.labels(self.alias, self.vendor).inc() try: return super().get_new_connection(*args, **kwargs) except Exception: connection_errors_total.labels(self.alias, self.vendor).inc() raise
def get_new_connection(self, *args, **kwargs): connections_total.labels(self.alias, self.vendor).inc() try: return super(DatabaseWrapperMixin, self).get_new_connection(*args, **kwargs) except: connection_errors_total.labels(self.alias, self.vendor).inc() raise
def get_new_connection(self, *args, **kwargs): connections_total.labels(self.alias, self.vendor).inc() try: return super(DatabaseWrapperMixin, self).get_new_connection( *args, **kwargs) except: connection_errors_total.labels(self.alias, self.vendor).inc() raise