You've already forked opentelemetry-go
							
							
				mirror of
				https://github.com/open-telemetry/opentelemetry-go.git
				synced 2025-10-31 00:07:40 +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:
		| @@ -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), | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -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]) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user