Skip to content

Commit 40067ca

Browse files
echatmancursoragent
andcommitted
otelriver: silence unparam lint on requireSumByAttrs
Match the existing requireSum helper's //nolint:unparam pattern; the name parameter is constant for now but the helper is intended to grow more callers as more partitioned-by-attribute metrics show up. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ed9f645 commit 40067ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

otelriver/middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ func requireSum(t *testing.T, metrics metricdata.ResourceMetrics, name string, v
794794
// expected value. A missing metric is treated as sum=0 so callers don't
795795
// need to distinguish "no data point" from "data point with value 0".
796796
// Pass no attrs to assert against the metric's grand total.
797-
func requireSumByAttrs(t *testing.T, metrics metricdata.ResourceMetrics, name string, expected int64, attrs ...attribute.KeyValue) {
797+
func requireSumByAttrs(t *testing.T, metrics metricdata.ResourceMetrics, name string, expected int64, attrs ...attribute.KeyValue) { //nolint:unparam
798798
t.Helper()
799799

800800
_, metricData, ok := getMetric[metricdata.Sum[int64]](t, metrics, name)

0 commit comments

Comments
 (0)