Skip to content

Commit 67c6a13

Browse files
committed
add test for quantile
1 parent 03d5e9a commit 67c6a13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

opentelemetry-proto/tests/json_serde.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,9 @@ mod json_serde {
16781678

16791679
// Verify that quantile values are NaN
16801680
assert!(data_point.quantile_values[0].value.is_nan());
1681+
assert!(data_point.quantile_values[0].quantile == 0.5);
16811682
assert!(data_point.quantile_values[1].value.is_nan());
1683+
assert!(data_point.quantile_values[1].quantile == 0.9);
16821684
} else {
16831685
panic!("Expected metric data to be of type Summary");
16841686
}

0 commit comments

Comments
 (0)