Fix linting

Signed-off-by: Carrie Edwards <edwrdscarrie@gmail.com>
This commit is contained in:
Carrie Edwards 2025-08-05 11:56:28 -07:00
parent 455ab8806f
commit 9f78ddded2
2 changed files with 5 additions and 5 deletions

View File

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

View File

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