1
0
mirror of https://github.com/open-telemetry/opentelemetry-go.git synced 2025-02-09 13:37:12 +02:00

Remove unneeded type argument from metric SDK (#3831)

Co-authored-by: Chester Cheung <cheung.zhy.csu@gmail.com>
This commit is contained in:
Tyler Yahn 2023-03-09 07:33:18 -08:00 committed by GitHub
parent 1626ff746f
commit 7dc7b30405
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -219,7 +219,7 @@ var _ instrument.Float64ObservableGauge = float64Observable{}
func newFloat64Observable(scope instrumentation.Scope, kind InstrumentKind, name, desc, u string, agg []internal.Aggregator[float64]) float64Observable {
return float64Observable{
observable: newObservable[float64](scope, kind, name, desc, u, agg),
observable: newObservable(scope, kind, name, desc, u, agg),
}
}
@ -234,7 +234,7 @@ var _ instrument.Int64ObservableGauge = int64Observable{}
func newInt64Observable(scope instrumentation.Scope, kind InstrumentKind, name, desc, u string, agg []internal.Aggregator[int64]) int64Observable {
return int64Observable{
observable: newObservable[int64](scope, kind, name, desc, u, agg),
observable: newObservable(scope, kind, name, desc, u, agg),
}
}

View File

@ -135,7 +135,7 @@ func testHistImmutableBounds[N int64 | float64](newA func(aggregation.ExplicitBu
}
func TestHistogramImmutableBounds(t *testing.T) {
t.Run("Delta", testHistImmutableBounds[int64](
t.Run("Delta", testHistImmutableBounds(
NewDeltaHistogram[int64],
func(a Aggregator[int64]) []float64 {
deltaH := a.(*deltaHistogram[int64])
@ -143,7 +143,7 @@ func TestHistogramImmutableBounds(t *testing.T) {
},
))
t.Run("Cumulative", testHistImmutableBounds[int64](
t.Run("Cumulative", testHistImmutableBounds(
NewCumulativeHistogram[int64],
func(a Aggregator[int64]) []float64 {
cumuH := a.(*cumulativeHistogram[int64])