Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace duration calculation in http_trace_id script with `px.format_…
…duration` (pixie-io#1407) Summary: Replace duration calculation in http_trace_id script with `px.format_duration` The `px.format_duration` function was added in pixie-io#1256, but the http_trace_id pxl script was not updated since end users must upgrade in order to get access to that function. It's been one month since that change was made, so let's update the pxl script to use the new function. Relevant Issues: N/A Type of change: /kind new-pxl-script Test Plan: Used the pxl scratch pad to verify that the time window is 2x'ed and rounded down to nearest whole number upon deep linking (35m x 2 = 70m -> 1h) <img width="1680" alt="Screenshot 2023-06-01 at 9 28 54 AM" src="https://github.com/pixie-io/pixie/assets/5855593/d3ff0877-5962-47ec-81e8-b5c6def88d3d"> <img width="1665" alt="Screenshot 2023-06-01 at 9 29 00 AM" src="https://github.com/pixie-io/pixie/assets/5855593/3271fc4c-2ce4-4d38-b42d-912f4432e34e"> Signed-off-by: Dom Del Nano <ddelnano@pixielabs.ai>
- Loading branch information