Skip to content

Commit e6ca3a7

Browse files
committed
Code changes
1 parent 6f3892d commit e6ca3a7

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

opentelemetry-sdk/benches/metrics_counter.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,18 @@ fn criterion_benchmark(c: &mut Criterion) {
5353
counter_add_sorted(c);
5454
counter_add_unsorted(c);
5555

56-
let attribute_values = ["value1".to_owned(), "value2".to_owned(), "value3".to_owned(), "value4".to_owned(), "value5".to_owned(), "value6".to_owned(), "value7".to_owned(), "value8".to_owned(), "value9".to_owned(), "value10".to_owned()];
56+
let attribute_values = [
57+
"value1".to_owned(),
58+
"value2".to_owned(),
59+
"value3".to_owned(),
60+
"value4".to_owned(),
61+
"value5".to_owned(),
62+
"value6".to_owned(),
63+
"value7".to_owned(),
64+
"value8".to_owned(),
65+
"value9".to_owned(),
66+
"value10".to_owned(),
67+
];
5768

5869
counter_add_sorted_with_non_static_values(c, attribute_values);
5970

opentelemetry-sdk/benches/metrics_histogram.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,18 @@ fn create_histogram(name: &'static str) -> Histogram<u64> {
5050
fn criterion_benchmark(c: &mut Criterion) {
5151
histogram_record(c);
5252

53-
let attribute_values = ["value1".to_owned(), "value2".to_owned(), "value3".to_owned(), "value4".to_owned(), "value5".to_owned(), "value6".to_owned(), "value7".to_owned(), "value8".to_owned(), "value9".to_owned(), "value10".to_owned()];
53+
let attribute_values = [
54+
"value1".to_owned(),
55+
"value2".to_owned(),
56+
"value3".to_owned(),
57+
"value4".to_owned(),
58+
"value5".to_owned(),
59+
"value6".to_owned(),
60+
"value7".to_owned(),
61+
"value8".to_owned(),
62+
"value9".to_owned(),
63+
"value10".to_owned(),
64+
];
5465
histogram_record_with_non_static_values(c, attribute_values);
5566
}
5667

0 commit comments

Comments
 (0)