Skip to content

Commit

Permalink
Update prometheus/histogram.go
Browse files Browse the repository at this point in the history
Co-authored-by: Björn Rabenstein <github@rabenste.in>
Signed-off-by: Ziqi Zhao <zhaoziqi9146@gmail.com>
  • Loading branch information
fatsheep9146 and beorn7 committed May 3, 2024
1 parent d4b9e4a commit 2f95b8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions prometheus/histogram.go
Original file line number Diff line number Diff line change
Expand Up @@ -1608,11 +1608,10 @@ func addAndResetCounts(hot, cold *histogramCounts) {
}

type nativeExemplars struct {
ttl time.Duration
sync.Mutex

ttl time.Duration
exemplars []*dto.Exemplar

sync.Mutex
}

func makeNativeExemplars(ttl time.Duration, maxCount int) nativeExemplars {
Expand Down

0 comments on commit 2f95b8c

Please sign in to comment.