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: fix the trace explorer back navigation issue (#8760)
Shaheer Kochai88312e971db6
diff --git a/frontend/src/pages/TracesExplorer/index.tsx b/frontend/src/pages/TracesExplorer/index.tsxindex 6c4c04a596..8ffe15a8f7 100644--- a/frontend/src/pages/TracesExplorer/index.tsx+++ b/frontend/src/pages/TracesExplorer/index.tsx@@ -10,7 +10,6 @@ import { QuickFiltersSource, SignalType } from 'components/QuickFilters/types';import WarningPopover from 'components/WarningPopover/WarningPopover';import { LOCALSTORAGE } from 'constants/localStorage';import { AVAILABLE_EXPORT_PANEL_TYPES } from 'constants/panelTypes';-import { QueryParams } from 'constants/query';import { initialQueriesMap, PANEL_TYPES } from 'constants/queryBuilder';import ExplorerOptionWrapper from 'container/ExplorerOptions/ExplorerOptionWrapper';import ExportPanel from 'container/ExportPanel';@@ -65,7 +64,7 @@ function TracesExplorer(): JSX.Element {},});- const [searchParams, setSearchParams] = useSearchParams();+ const [searchParams] = useSearchParams();// Get panel type from URLconst panelTypesFromUrl = useGetPanelTypesQueryParam(PANEL_TYPES.LIST);@@ -88,14 +87,6 @@ function TracesExplorer(): JSX.Element {}}, [panelTypesFromUrl, selectedView]);- // Update URL when selectedView changes- useEffect(() => {- setSearchParams((prev: URLSearchParams) => {- prev.set(QueryParams.selectedExplorerView, selectedView);- return prev;- });- }, [selectedView, setSearchParams]);-const [shouldReset, setShouldReset] = useState(false);const [defaultQuery, setDefaultQuery] = useState<Query>(() =>@@ -141,6 +132,7 @@ function TracesExplorer(): JSX.Element {}setSelectedView(view);+handleExplorerTabChange(view === ExplorerViews.TIMESERIES ? PANEL_TYPES.TIME_SERIES : view,);