Loading src/common/method_wrappers/Decorator.py +3 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,9 @@ class MetricsPool: else: raise Exception('Unsupported metric: {:s}'.format(raw_metric_name)) # pragma: no cover metric_data = method_to_metric_fields.setdefault(method_name, dict()).setdefault(metric_name, dict()) for field_name,labels,value,_,_ in raw_metric_data._child_samples(): child_samples = raw_metric_data._child_samples() for sample in child_samples: field_name, labels, value, _, _ = sample if field_name == '_bucket': bucket_bounds.add(labels['le']) if len(labels) > 0: field_name = '{:s}:{:s}'.format(field_name, json.dumps(labels, sort_keys=True)) metric_data[field_name] = value Loading src/context/requirements.in +2 −2 Original line number Diff line number Diff line Loading @@ -14,6 +14,6 @@ nats-py==2.10.* psycopg2-binary==2.9.* SQLAlchemy==1.4.* sqlalchemy-cockroachdb==1.4.* SQLAlchemy==1.4.* # TODO: Update to 2.0 due to deprecated build step sqlalchemy-cockroachdb==1.4.* # TODO: Update to 2.0 due to deprecated build step SQLAlchemy-Utils==0.41.* Loading
src/common/method_wrappers/Decorator.py +3 −1 Original line number Diff line number Diff line Loading @@ -128,7 +128,9 @@ class MetricsPool: else: raise Exception('Unsupported metric: {:s}'.format(raw_metric_name)) # pragma: no cover metric_data = method_to_metric_fields.setdefault(method_name, dict()).setdefault(metric_name, dict()) for field_name,labels,value,_,_ in raw_metric_data._child_samples(): child_samples = raw_metric_data._child_samples() for sample in child_samples: field_name, labels, value, _, _ = sample if field_name == '_bucket': bucket_bounds.add(labels['le']) if len(labels) > 0: field_name = '{:s}:{:s}'.format(field_name, json.dumps(labels, sort_keys=True)) metric_data[field_name] = value Loading
src/context/requirements.in +2 −2 Original line number Diff line number Diff line Loading @@ -14,6 +14,6 @@ nats-py==2.10.* psycopg2-binary==2.9.* SQLAlchemy==1.4.* sqlalchemy-cockroachdb==1.4.* SQLAlchemy==1.4.* # TODO: Update to 2.0 due to deprecated build step sqlalchemy-cockroachdb==1.4.* # TODO: Update to 2.0 due to deprecated build step SQLAlchemy-Utils==0.41.*