-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Emit error when querying native histograms with extended functions (#322
) * Emit error when querying native histograms with extended functions We saw panics on our setup because users tried to use the extended functions with native histograms, which led to rates calculated with only one sample in some windows. In this PR I am introducing a safeguard against this type of situation and emiting a warn when users try to query native histograms with extended functions. Signed-off-by: Pedro Tanaka <[email protected]> Fixing test case Signed-off-by: Pedro Tanaka <[email protected]> removing dead code Signed-off-by: Pedro Tanaka <[email protected]> Return error instead of warn Signed-off-by: Pedro Tanaka <[email protected]> fixing linting Signed-off-by: Pedro Tanaka <[email protected]> * Update execution/scan/functions.go Co-authored-by: Filip Petkovski <[email protected]> Signed-off-by: Pedro Tanaka <[email protected]> * Removing query context Signed-off-by: Pedro Tanaka <[email protected]> --------- Signed-off-by: Pedro Tanaka <[email protected]> Co-authored-by: Filip Petkovski <[email protected]>
- Loading branch information
1 parent
4517c0d
commit dfb4b4f
Showing
3 changed files
with
56 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
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