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
chore: setup router compatibility package (#6285)
Shaheer Kochaidc5917db016f
diff --git a/frontend/package.json b/frontend/package.jsonindex 82fda7af0a..09316d530e 100644--- a/frontend/package.json+++ b/frontend/package.json@@ -87,6 +87,8 @@"lodash-es": "^4.17.21","lucide-react": "0.379.0","mini-css-extract-plugin": "2.4.5",+ "overlayscrollbars": "^2.8.1",+ "overlayscrollbars-react": "^0.5.6","papaparse": "5.4.1","posthog-js": "1.160.3","rc-tween-one": "3.0.6",@@ -107,11 +109,10 @@"react-query": "3.39.3","react-redux": "^7.2.2","react-router-dom": "^5.2.0",+ "react-router-dom-v5-compat": "6.27.0","react-syntax-highlighter": "15.5.0","react-use": "^17.3.2","react-virtuoso": "4.0.3",- "overlayscrollbars-react": "^0.5.6",- "overlayscrollbars": "^2.8.1","redux": "^4.0.5","redux-thunk": "^2.3.0","rehype-raw": "7.0.0",diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex 2d0f4231cc..c4cab69413 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -28,6 +28,7 @@ import { Suspense, useEffect, useState } from 'react';import { useQuery } from 'react-query';import { useDispatch, useSelector } from 'react-redux';import { Route, Router, Switch } from 'react-router-dom';+import { CompatRouter } from 'react-router-dom-v5-compat';import { Dispatch } from 'redux';import { AppState } from 'store/reducers';import AppActions from 'types/actions';@@ -292,36 +293,38 @@ function App(): JSX.Element {return (<ConfigProvider theme={themeConfig}><Router history={history}>- <NotificationProvider>- <PrivateRoute>- <ResourceProvider>- <QueryBuilderProvider>- <DashboardProvider>- <KeyboardHotkeysProvider>- <AlertRuleProvider>- <AppLayout>- <Suspense fallback={<Spinner size="large" tip="Loading..." />}>- <Switch>- {routes.map(({ path, component, exact }) => (- <Route- key={`${path}`}- exact={exact}- path={path}- component={component}- />- ))}-- <Route path="*" component={NotFound} />- </Switch>- </Suspense>- </AppLayout>- </AlertRuleProvider>- </KeyboardHotkeysProvider>- </DashboardProvider>- </QueryBuilderProvider>- </ResourceProvider>- </PrivateRoute>- </NotificationProvider>+ <CompatRouter>+ <NotificationProvider>+ <PrivateRoute>+ <ResourceProvider>+ <QueryBuilderProvider>+ <DashboardProvider>+ <KeyboardHotkeysProvider>+ <AlertRuleProvider>+ <AppLayout>+ <Suspense fallback={<Spinner size="large" tip="Loading..." />}>+ <Switch>+ {routes.map(({ path, component, exact }) => (+ <Route+ key={`${path}`}+ exact={exact}+ path={path}+ component={component}+ />+ ))}++ <Route path="*" component={NotFound} />+ </Switch>+ </Suspense>+ </AppLayout>+ </AlertRuleProvider>+ </KeyboardHotkeysProvider>+ </DashboardProvider>+ </QueryBuilderProvider>+ </ResourceProvider>+ </PrivateRoute>+ </NotificationProvider>+ </CompatRouter></Router></ConfigProvider>);diff --git a/frontend/yarn.lock b/frontend/yarn.lockindex 0ee23eff55..36b62c1282 100644--- a/frontend/yarn.lock+++ b/frontend/yarn.lock@@ -2212,6 +2212,13 @@dependencies:regenerator-runtime "^0.14.0"+"@babel/runtime@^7.7.6":+ version "7.26.0"+ resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.26.0.tgz#8600c2f595f277c60815256418b85356a65173c1"+ integrity sha512-FDSOghenHTiToteC/QRlv2q3DhPZ/oOXTBoirfWNx1Cx3TMVcGWQtMMmQcSvb/JjpNeGzx8Pq/b4fKEJuWm1sw==+ dependencies:+ regenerator-runtime "^0.14.0"+"@babel/template@^7.18.10", "@babel/template@^7.20.7", "@babel/template@^7.3.3":version "7.20.7"resolved "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz"@@ -3534,6 +3541,11 @@resolved "https://registry.yarnpkg.com/@react-dnd/shallowequal/-/shallowequal-4.0.2.tgz#d1b4befa423f692fa4abf1c79209702e7d8ae4b4"integrity sha512-/RVXdLvJxLg4QKvMoM5WlwNR9ViO9z8B/qPcc+C0Sa/teJY7QG7kJ441DwzOjMYEY7GmU4dj5EcGHIkKZiQZCA==+"@remix-run/[email protected]":+ version "1.20.0"+ resolved "https://registry.yarnpkg.com/@remix-run/router/-/router-1.20.0.tgz#03554155b45d8b529adf635b2f6ad1165d70d8b4"+ integrity sha512-mUnk8rPJBI9loFDZ+YzPGdeniYK+FTmRD1TMCz7ev2SNIozyKKpnGgsxO34u6Z4z/t0ITuu7voi/AshfsGsgFg==+"@rollup/pluginutils@^5.1.0":version "5.1.0"resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0"@@ -9398,6 +9410,13 @@ [email protected], history@^4.9.0:tiny-warning "^1.0.0"value-equal "^1.0.1"+history@^5.3.0:+ version "5.3.0"+ resolved "https://registry.yarnpkg.com/history/-/history-5.3.0.tgz#1548abaa245ba47992f063a0783db91ef201c73b"+ integrity sha512-ZqaKwjjrAYUYfLG+htGaIIZ4nioX2L70ZUMIFysS3xvBsSG4x/n1V6TXV3N8ZYNuFGlDirFg32T7B6WOUPDYcQ==+ dependencies:+ "@babel/runtime" "^7.7.6"+hoist-non-react-statics@^3.0.0, hoist-non-react-statics@^3.1.0, hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2:version "3.3.2"resolved "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz"@@ -14267,6 +14286,15 @@ react-resizable@^3.0.4:prop-types "15.x"react-draggable "^4.0.3"+ version "6.27.0"+ resolved "https://registry.yarnpkg.com/react-router-dom-v5-compat/-/react-router-dom-v5-compat-6.27.0.tgz#19429aefa130ee151e6f4487d073d919ec22d458"+ integrity sha512-hq5yCVoW73mljLhRjyzpYmooLNPR/xb17S3CTz9fe2/P7q821ivMEa9c8OtrAk2Bs83PcNAtst5okT/aUhJtgg==+ dependencies:+ "@remix-run/router" "1.20.0"+ history "^5.3.0"+ react-router "6.27.0"+react-router-dom@^5.2.0:version "5.3.4"resolved "https://registry.npmjs.org/react-router-dom/-/react-router-dom-5.3.4.tgz"@@ -14295,6 +14323,13 @@ [email protected]:tiny-invariant "^1.0.2"tiny-warning "^1.0.0"+ version "6.27.0"+ resolved "https://registry.yarnpkg.com/react-router/-/react-router-6.27.0.tgz#db292474926c814c996c0ff3ef0162d1f9f60ed4"+ integrity sha512-YA+HGZXz4jaAkVoYBE98VQl+nVzI+cVI2Oj/06F5ZM+0u3TgedN9Y9kmMRo2mnkSK2nCpNQn0DVob4HCsY/WLw==+ dependencies:+ "@remix-run/router" "1.20.0"+version "15.5.0"resolved "https://registry.yarnpkg.com/react-syntax-highlighter/-/react-syntax-highlighter-15.5.0.tgz#4b3eccc2325fa2ec8eff1e2d6c18fa4a9e07ab20"