Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] APM Correlations: Fix percentiles values. #116639

Merged
merged 7 commits into from
Nov 2, 2021
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,11 @@ export const latencyCorrelationsSearchServiceProvider: LatencyCorrelationsSearch
params,
percentileAggregationPercents
);
const percentiles = Object.values(percentilesRecords);

// We need to round the percentiles values
// because the queries we're using based on it
// later on wouldn't allow numbers with decimals.
const percentiles = Object.values(percentilesRecords).map(Math.round);

addLogMessage(`Loaded percentiles.`);

Expand Down