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
feat: signoz cloud - show cloud onboarding docs only when the domain is signoz.cloud (#3540)
Yunus M9a0099893004
diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex 341cc78580..11f9d79d51 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -32,6 +32,8 @@ function App(): JSX.Element {const dispatch = useDispatch<Dispatch<AppActions>>();+ const { hostname } = window.location;+const featureResponse = useGetFeatureFlag((allFlags) => {const isOnboardingEnabled =allFlags.find((flag) => flag.name === FeatureKeys.ONBOARDING)?.active ||@@ -49,9 +51,12 @@ function App(): JSX.Element {},});- if (isOnboardingEnabled) {+ if (+ !isOnboardingEnabled ||+ !(hostname && hostname.endsWith('signoz.cloud'))+ ) {const newRoutes = routes.filter(- (route) => route?.key !== ROUTES.GET_STARTED,+ (route) => route?.path !== ROUTES.GET_STARTED,);setRoutes(newRoutes);diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsxindex 1ef5222a53..1570e12b70 100644--- a/frontend/src/container/SideNav/SideNav.tsx+++ b/frontend/src/container/SideNav/SideNav.tsx@@ -40,6 +40,8 @@ function SideNav(): JSX.Element {featureResponse,} = useSelector<AppState, AppReducer>((state) => state.app);+ const { hostname } = window.location;+const menuItems = useMemo(() =>defaultMenuItems.filter((item) => {@@ -48,13 +50,16 @@ function SideNav(): JSX.Element {(feature) => feature.name === FeatureKeys.ONBOARDING,)?.active || false;- if (!isOnboardingEnabled) {+ if (+ !isOnboardingEnabled ||+ !(hostname && hostname.endsWith('signoz.cloud'))+ ) {return item.key !== ROUTES.GET_STARTED;}return true;}),- [featureResponse],+ [featureResponse.data, hostname],);const { pathname, search } = useLocation();