diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0051c3d..578608e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,9 +29,9 @@ jobs: run: go test -short -timeout 300s ./... - name: golangci-lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@v8 with: - version: latest + version: v2.12.2 args: --allow-serial-runners --timeout 10m - name: staticcheck diff --git a/internal/otel/metrics.go b/internal/otel/metrics.go index 1690da9..1dd23eb 100644 --- a/internal/otel/metrics.go +++ b/internal/otel/metrics.go @@ -202,7 +202,7 @@ func MetricsHandler(metrics ...*SMTMetrics) http.HandlerFunc { b.WriteString(m.PrometheusText()) } w.Header().Set("Content-Type", "text/plain; version=0.0.4") - fmt.Fprint(w, b.String()) + _, _ = fmt.Fprint(w, b.String()) } }