Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[APM UI] Fix Latency distribution chart breaks due to transaction dur…
…ations of value 0 (elastic#191994) ## Summary Fixes: elastic#184256 This PR fixes the APM latency distribution chart not being able to render when we had any duration value as 0, to fix it, we now check if it's 0 and override it with 1. |Before|After| |-|-| ||| ## Test steps 1. Open the following file `x-pack/plugins/observability_solution/apm/server/routes/correlations/queries/fetch_duration_histogram_range_steps.ts` 2. Modify L61 and L118 changing the initial two values passed to `getHistogramRangeSteps` to 0. Like `getHistogramRangeSteps(0, 0, steps)`. It doesn't matter the order, if one of the params is at 0 it won't render anything. 3. Revert the change and check if the chart is being rendered.
- Loading branch information