[chore]: Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.0 (#3210)

This commit is contained in:
dependabot[bot] 2024-08-19 10:13:46 +00:00 committed by GitHub
commit 6ff8376d96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
197 changed files with 28294 additions and 563 deletions

View file

@ -234,7 +234,7 @@ func NewMetricWithExemplars(m Metric, exemplars ...Exemplar) (Metric, error) {
)
for i, e := range exemplars {
ts := e.Timestamp
if ts == (time.Time{}) {
if ts.IsZero() {
ts = now
}
exs[i], err = newExemplar(e.Value, ts, e.Labels)