We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67121dc commit e061dfaCopy full SHA for e061dfa
prometheus/histogram_test.go
@@ -1049,10 +1049,14 @@ func TestNativeHistogramConcurrency(t *testing.T) {
1049
1050
go func(vals []float64) {
1051
start.Wait()
1052
- for _, v := range vals {
+ for i, v := range vals {
1053
// An observation every 1 to 10 seconds.
1054
atomic.AddInt64(&ts, rand.Int63n(10)+1)
1055
- his.Observe(v)
+ if i%2 == 0 {
1056
+ his.Observe(v)
1057
+ } else {
1058
+ his.(ExemplarObserver).ObserveWithExemplar(v, Labels{"foo": "bar"})
1059
+ }
1060
}
1061
end.Done()
1062
}(vals)
0 commit comments