Skip to content

Commit a33760c

Browse files
committed
make bench do same as before
1 parent 48ae7fd commit a33760c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opentelemetry-sdk/benches/metric.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ fn bench_histogram(bound_count: usize) -> (SharedReader, Histogram<u64>) {
274274
let builder = SdkMeterProvider::builder()
275275
.with_reader(r.clone())
276276
.with_view(Box::new(move |i: &Instrument| {
277-
if i.name() == "histogram_*" {
277+
if i.name().starts_with("histogram_") {
278278
Stream::builder()
279279
.with_aggregation(Aggregation::ExplicitBucketHistogram {
280280
boundaries: bounds.iter().map(|&x| x as f64).collect(),

0 commit comments

Comments
 (0)