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 (#191994) ## Summary Fixes: #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| |-|-| |![image](https://github.com/user-attachments/assets/df224a1d-a669-4ea8-ad0e-9f81a82b904a)|![image](https://github.com/user-attachments/assets/cbf6957c-df6f-4f71-8f96-7985279912fa)| ## 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