Merge pull request #1177 from hakman/depup
Some checks failed
CodeQL / Analyze (go) (push) Failing after 1m28s
Scorecard supply-chain security / Scorecard analysis (push) Failing after 54s

Update dependencies and bump Go to v1.24.10
This commit is contained in:
Kubernetes Prow Robot
2025-12-02 03:46:24 -08:00
committed by GitHub
362 changed files with 20314 additions and 29260 deletions

View File

@@ -22,6 +22,7 @@ import (
pcm "github.com/prometheus/client_model/go"
"github.com/prometheus/common/expfmt"
"github.com/prometheus/common/model"
"go.opencensus.io/tag"
)
@@ -72,7 +73,7 @@ func getTagKeysFromNames(tagNames []string) ([]tag.Key, error) {
func ParsePrometheusMetrics(metricsText string) ([]Float64MetricRepresentation, error) {
var metrics []Float64MetricRepresentation
var textParser expfmt.TextParser
textParser := expfmt.NewTextParser(model.UTF8Validation)
metricsText = strings.ReplaceAll(metricsText, "\r", "")
metricFamilies, err := textParser.TextToMetricFamilies(strings.NewReader(metricsText))
if err != nil {