You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an exemplar reservoir's collectAndReset method is called, no care is taken to verify which cells are populated, thus empty exemplar datapoints are returned in the array.
Summary
When an exemplar reservoir's
collectAndReset
method is called, no care is taken to verify which cells are populated, thus empty exemplar datapoints are returned in the array.opentelemetry-swift/Sources/OpenTelemetrySdk/Metrics/Stable/Exemplar/ExemplarReservoir.swift
Line 43 in 7125823
Detail
The storage is initialized with
size
number ofReservoirCell
.But the buckets have default values, and are only populated when offer measurement is called:
If any cell has measurements, the method will return results from all cells, even if they haven't been populated.
The text was updated successfully, but these errors were encountered: