Skip to content

Commit 5906d94

Browse files
committed
test: update name for up_down_counter instrument
1 parent a7210f6 commit 5906d94

File tree

1 file changed

+2
-2
lines changed
  • opentelemetry-sdk/src/metrics

1 file changed

+2
-2
lines changed

opentelemetry-sdk/src/metrics/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -933,7 +933,7 @@ mod tests {
933933
}
934934

935935
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
936-
async fn no_attr_delta_up_down_counter() {
936+
async fn no_attr_up_down_counter_always_cumulative() {
937937
let mut test_context = TestContext::new(Temporality::Delta);
938938
let counter = test_context.i64_up_down_counter("test", "my_counter", Some("my_unit"));
939939

@@ -947,7 +947,7 @@ mod tests {
947947
assert_eq!(
948948
sum.temporality,
949949
Temporality::Cumulative,
950-
"Should produce Cumulative for UpDownCounter"
950+
"Should produce Cumulative due to UpDownCounter temporality_preference"
951951
);
952952

953953
let data_point = &sum.data_points[0];

0 commit comments

Comments
 (0)