From 134a6104409da8fb873d86b91b7a7c313886e1bd Mon Sep 17 00:00:00 2001 From: Aaron Clawson Date: Thu, 16 Dec 2021 14:22:53 -0600 Subject: [PATCH] Fixes because of removal of exact type. (#2459) Co-authored-by: Aaron Clawson Co-authored-by: Anthony Mirabella --- sdk/metric/benchmark_test.go | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/sdk/metric/benchmark_test.go b/sdk/metric/benchmark_test.go index eb89f54b330..c4ecf306293 100644 --- a/sdk/metric/benchmark_test.go +++ b/sdk/metric/benchmark_test.go @@ -230,11 +230,11 @@ func BenchmarkFloat64LastValueAdd(b *testing.B) { // Histograms -func benchmarkInt64HistogramAdd(b *testing.B, name string) { +func BenchmarkInt64HistogramAdd(b *testing.B) { ctx := context.Background() fix := newFixture(b) labs := makeLabels(1) - mea := fix.meterMust().NewInt64Histogram(name) + mea := fix.meterMust().NewInt64Histogram("int64.histogram") b.ResetTimer() @@ -243,11 +243,11 @@ func benchmarkInt64HistogramAdd(b *testing.B, name string) { } } -func benchmarkFloat64HistogramAdd(b *testing.B, name string) { +func BenchmarkFloat64HistogramAdd(b *testing.B) { ctx := context.Background() fix := newFixture(b) labs := makeLabels(1) - mea := fix.meterMust().NewFloat64Histogram(name) + mea := fix.meterMust().NewFloat64Histogram("float64.histogram") b.ResetTimer() @@ -303,16 +303,6 @@ func BenchmarkGaugeObserverObservationFloat64(b *testing.B) { fix.accumulator.Collect(ctx) } -// Exact - -func BenchmarkInt64ExactAdd(b *testing.B) { - benchmarkInt64HistogramAdd(b, "int64.exact") -} - -func BenchmarkFloat64ExactAdd(b *testing.B) { - benchmarkFloat64HistogramAdd(b, "float64.exact") -} - // BatchRecord func benchmarkBatchRecord8Labels(b *testing.B, numInst int) {