SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: update time stamp on the first load in URL to help with back navigation (#4397)
Vikrant Guptaf0669a6dc1c4
diff --git a/frontend/src/container/TopNav/DateTimeSelection/index.tsx b/frontend/src/container/TopNav/DateTimeSelection/index.tsxindex c72ff7b82d..785f65da8f 100644--- a/frontend/src/container/TopNav/DateTimeSelection/index.tsx+++ b/frontend/src/container/TopNav/DateTimeSelection/index.tsx@@ -279,6 +279,18 @@ function DateTimeSelection({setRefreshButtonHidden(updatedTime === 'custom');updateTimeInterval(updatedTime, [preStartTime, preEndTime]);++ if (updatedTime !== 'custom') {+ const { minTime, maxTime } = GetMinMax(updatedTime);+ urlQuery.set(QueryParams.startTime, minTime.toString());+ urlQuery.set(QueryParams.endTime, maxTime.toString());+ } else {+ urlQuery.set(QueryParams.startTime, preStartTime.toString());+ urlQuery.set(QueryParams.endTime, preEndTime.toString());+ }+ const generatedUrl = `${location.pathname}?${urlQuery.toString()}`;+ history.replace(generatedUrl);+// eslint-disable-next-line react-hooks/exhaustive-deps}, [location.pathname, updateTimeInterval, globalTimeLoading]);