Skip to content

Commit 0f70a2b

Browse files
committed
fix metrics with bool values
1 parent 17a5ad6 commit 0f70a2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

monitoring/prepare_metrics.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ def build_metric_struct(name: str, value: any, labels: dict) -> dict:
4646
name = update_from_coverage(name, labels)
4747

4848
name = f"utbot_{name}"
49+
50+
if type(value) == bool:
51+
value = int(value)
52+
4953
return {
5054
"metric": name,
5155
"labels": labels,

0 commit comments

Comments
 (0)