Skip to content
This repository has been archived by the owner on May 27, 2021. It is now read-only.

Remove assertions when mapping value to countsArray index #16

Merged
merged 1 commit into from
Nov 29, 2019

Conversation

mladens
Copy link
Contributor

@mladens mladens commented Nov 27, 2019

Since index calculated here is used to construct a compacted histogram snapshot
and not index the actual counts array, we are removing the assertions that would
prevent index overflowing backing-histogram's dynamic range.

This is required in order to pack gauge values as histograms since gauges are not
capped by backing-histogram's maxTrackableValue

Since index calculated here is used to construct a compacted histogram snapshot
and not index the actual counts array, we are removing the assertions that would
prevent index overflowing backing-histogram's dynamic range.

This is required in order to pack gauge values as histograms since gauges are not
capped by backing-histogram's maxTrackableValue
@ivantopo ivantopo merged commit 88e6cc7 into kamon-io:master Nov 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants