A change in the ES range agg no longer accepts numbers with decimals if the underlying field is typed as long. This PR fixes the issue by rounding the percentiles values we pass on to the range agg. Co-authored-by: Walter Rafelsberger <walter@elastic.co>
This commit is contained in:
parent
5391e98f54
commit
1fe9775948
|
@ -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.`);
|
||||
|
||||
|
|
Loading…
Reference in a new issue