Skip to content

Commit

Permalink
Fix metric_counter bench (open-telemetry#1424)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rockin2 authored Dec 5, 2023
1 parent 10456d4 commit ec38660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions opentelemetry-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ harness = false
[[bench]]
name = "metric_counter"
harness = false
required-features = ["metrics"]

[[bench]]
name = "attribute_set"
Expand Down
2 changes: 1 addition & 1 deletion opentelemetry-sdk/benches/metric_counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use opentelemetry_sdk::metrics::{ManualReader, SdkMeterProvider};
use rand::{rngs::SmallRng, Rng, SeedableRng};

// Run this benchmark with:
// cargo bench --bench metric_counter --features=metrics,testing
// cargo bench --bench metric_counter --features=metrics
fn create_counter() -> Counter<u64> {
let meter_provider: SdkMeterProvider = SdkMeterProvider::builder()
.with_reader(ManualReader::builder().build())
Expand Down

0 comments on commit ec38660

Please sign in to comment.