Merge pull request #26 from thepycoder/bugfix/variable_value_mixup

Changed variable type to value
This commit is contained in:
Allegro AI 2022-05-31 17:32:37 +03:00 committed by GitHub
commit c51e2d402e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,7 @@ def func_metric_add(args):
name = v.strip() name = v.strip()
if name in metric.metrics: if name in metric.metrics:
print("Warning: {} defined twice".format(name)) print("Warning: {} defined twice".format(name))
metric.metrics[name] = dict(type="variable", buckets=None) metric.metrics[name] = dict(type="value", buckets=None)
if not request_processor.add_metric_logging(metric=metric): if not request_processor.add_metric_logging(metric=metric):
raise ValueError("Could not add metric logging endpoint {}".format(args.endpoint)) raise ValueError("Could not add metric logging endpoint {}".format(args.endpoint))