Skip to content

Commit 768b75e

Browse files
authored
Update metrics.go
1 parent a5480de commit 768b75e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

metrics.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ func (f GatherMetricsFunc) GatherMetrics(ctx context.Context, m *Metrics) error
7676

7777
// Add adds a metric with the given name, labels, and value,
7878
// The labels are expected to be sorted lexicographically.
79+
// NaN and Inf values will be ignored
7980
func (m *Metrics) Add(name string, labels []MetricLabel, value float64) {
8081
m.addMetric(name, labels, model.Metric{Value: value})
8182
}

0 commit comments

Comments
 (0)