From 1e274e0295befa11edbd8155776811770e36a9c5 Mon Sep 17 00:00:00 2001 From: Aaron Clawson Date: Wed, 15 Dec 2021 20:11:24 +0000 Subject: [PATCH] Fixes because of removal of exact type. --- 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) {