Exemplo n.º 1
0
 def executemany(self, query, param_list, *args, **kwargs):
     execute_total.labels(alias, vendor).inc(len(param_list))
     execute_many_total.labels(alias, vendor).inc(len(param_list))
     with ExceptionCounterByType(errors_total, extra_labels={
             'alias': alias, 'vendor': vendor}):
         return super(CursorWrapper, self).executemany(
             query=query, param_list=param_list, *args, **kwargs)
Exemplo n.º 2
0
 def executemany(self, query, param_list, *args, **kwargs):
     execute_total.labels(alias, vendor).inc(len(param_list))
     execute_many_total.labels(alias, vendor).inc(len(param_list))
     with ExceptionCounterByType(errors_total, extra_labels={
             'alias': alias, 'vendor': vendor}):
         return super(CursorWrapper, self).executemany(
             query, param_list, *args, **kwargs)
Exemplo n.º 3
0
 def executemany(self, query, param_list, *args, **kwargs):
     execute_total.labels(alias, vendor).inc(len(param_list))
     execute_many_total.labels(alias, vendor).inc(len(param_list))
     with query_duration_seconds.labels(
             **labels).time(), (ExceptionCounterByType(
                 errors_total, extra_labels=labels)):
         return super().executemany(query, param_list, *args, **kwargs)