Skip to content

Commit

Permalink
Add doc string for NewMetricWithExemplars
Browse files Browse the repository at this point in the history
Signed-off-by: Shivanth <[email protected]>
  • Loading branch information
shivanthzen committed Jan 14, 2025
1 parent 537b51f commit 67dbd86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions prometheus/metric.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ type Exemplar struct {
// Only last applicable exemplar is injected from the list.
// For example for Counter it means last exemplar is injected.
// For Histogram, it means last applicable exemplar for each bucket is injected.
// Note that for a nativeHistogram, all valid exemplars are injected.
//
// NewMetricWithExemplars works best with MustNewConstMetric and
// MustNewConstHistogram, see example.
Expand Down

0 comments on commit 67dbd86

Please sign in to comment.