SigNoz / signoz

SigNoz is an open-source observability platform native to OpenTelemetry with logs, traces and metrics in a single application. An open-source alternative to DataDog, NewRelic, etc. 🔥 🖥. 👉 Open source Application Performance Monitoring (APM) & Observability tool
https://signoz.io
Other
19.43k stars 1.3k forks source link

fix: update TestListTsRange to return all range #6470

Closed nityanandagohain closed 3 days ago

nityanandagohain commented 3 days ago

Previously we had an if clause that if the startEndArr array is empty don't run the new pagination and fallback, which was missed so. Queries for <= hour interval were returning empty results.

Update the function to return a signle item which contains the actual start and end if the interval is < hour


[!IMPORTANT] Fixes GetListTsRanges to return a single range for intervals less than 1 hour, updating the test case accordingly.

  • Behavior:
    • Fixes GetListTsRanges in logs.go to return a single range for intervals < 1 hour.
    • Previously, intervals <= 1 hour returned empty results.
  • Tests:
    • Updates TestListTsRange in logs_test.go to expect a single range for intervals < 1 hour.

This description was created by Ellipsis for 2ed2bd617537e2d8d0ff252412afb07683a11c39. It will automatically update as commits are pushed.

github-actions[bot] commented 3 days ago

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #

github-actions[bot] commented 3 days ago

Build Error! No Linked Issue found. Please link an issue or mention it in the body using #