-
Notifications
You must be signed in to change notification settings - Fork 307
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: add sample-count operation (#1592)
Adds a `sample-count` operation that can be used to estimate the number of samples received for a percentile approximation baed on a range of the distribution. This estimate is computed by adjusting the query to restrict the set of buckets used to model the distribution to those for the specified range. One use-case for this is to be able to track number of requests that are not within an SLO based on latency. If more precise tracking is needed, then a bucket counter could be used with a bucket boundary that matches the SLO threshold. However, this operation can be used to get an estimate if an existing percentile timer exists. For now this operation is marked as unstable to allow for some broader testing. There may still be some adjustments to the naming and behavior.
- Loading branch information
1 parent
1c7b6a4
commit 93402a5
Showing
2 changed files
with
144 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters