1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-01-18 03:22:12 +02:00

Fixes because of removal of exact type. (#2459)

Co-authored-by: Aaron Clawson <MadVikingGod@users.noreply.github.com>
Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
This commit is contained in:
Aaron Clawson 2021-12-16 14:22:53 -06:00 committed by GitHub
parent 4654d78104
commit 134a610440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {