diff --git a/storage/remote/otlptranslator/prometheusremotewrite/metrics_to_prw_test.go b/storage/remote/otlptranslator/prometheusremotewrite/metrics_to_prw_test.go index c9fd7f16b3..f62b692e8c 100644 --- a/storage/remote/otlptranslator/prometheusremotewrite/metrics_to_prw_test.go +++ b/storage/remote/otlptranslator/prometheusremotewrite/metrics_to_prw_test.go @@ -623,7 +623,7 @@ func createPromFloatSeries(name string, ts time.Time) prompb.TimeSeries { } } -func createPromFloatSeriesWithTemporality(name string, temporality string, ts time.Time) prompb.TimeSeries { +func createPromFloatSeriesWithTemporality(name, temporality string, ts time.Time) prompb.TimeSeries { return prompb.TimeSeries{ Labels: []prompb.Label{ {Name: "__name__", Value: name}, @@ -683,7 +683,7 @@ func createPromNativeHistogramSeries(name string, hint prompb.Histogram_ResetHin } } -func createPromNativeHistogramSeriesWithTemporality(name string, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries { +func createPromNativeHistogramSeriesWithTemporality(name, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries { return prompb.TimeSeries{ Labels: []prompb.Label{ {Name: "__name__", Value: name}, @@ -747,7 +747,7 @@ func createPromNHCBSeries(name string, hint prompb.Histogram_ResetHint, ts time. } } -func createPromNHCBSeriesWithTemporality(name string, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries { +func createPromNHCBSeriesWithTemporality(name, temporality string, hint prompb.Histogram_ResetHint, ts time.Time) prompb.TimeSeries { return prompb.TimeSeries{ Labels: []prompb.Label{ {Name: "__name__", Value: name}, @@ -818,7 +818,7 @@ func createPromClassicHistogramSeries(name string, ts time.Time) []prompb.TimeSe } } -func createPromClassicHistogramSeriesWithTemporality(name string, temporality string, ts time.Time) []prompb.TimeSeries { +func createPromClassicHistogramSeriesWithTemporality(name, temporality string, ts time.Time) []prompb.TimeSeries { return []prompb.TimeSeries{ { Labels: []prompb.Label{ diff --git a/storage/remote/write_test.go b/storage/remote/write_test.go index 767db4adf8..2255bbe2b1 100644 --- a/storage/remote/write_test.go +++ b/storage/remote/write_test.go @@ -711,7 +711,7 @@ func requireContainsSample(t *testing.T, actual []mockSample, expected mockSampl "actual : %v", expected, actual)) } -func handleOTLP(t *testing.T, exportRequest pmetricotlp.ExportRequest, otlpCfg config.OTLPConfig, typeAndUnitLabels bool, nativeDelta bool) *mockAppendable { +func handleOTLP(t *testing.T, exportRequest pmetricotlp.ExportRequest, otlpCfg config.OTLPConfig, typeAndUnitLabels, nativeDelta bool) *mockAppendable { buf, err := exportRequest.MarshalProto() require.NoError(t, err)