We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829216a commit 2c835e9Copy full SHA for 2c835e9
opentelemetry-sdk/benches/metric.rs
@@ -107,8 +107,10 @@ impl MetricReader for SharedReader {
107
// time: [643.75 ns 649.05 ns 655.14 ns]
108
// Histogram/Record10Attrs1000bounds
109
// time: [726.87 ns 736.52 ns 747.09 ns]
110
+type ViewFn = Box<dyn Fn(&Instrument) -> Option<Stream> + Send + Sync + 'static>;
111
+
112
fn bench_counter(
- view: Option<Box<dyn Fn(&Instrument) -> Option<Stream> + Send + Sync + 'static>>,
113
+ view: Option<ViewFn>,
114
temporality: &str,
115
) -> (SharedReader, Counter<u64>) {
116
let rdr = if temporality == "cumulative" {
0 commit comments