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: deprecate clarity from frontend (#5962)
Vikrant Gupta3fdfb51e0243
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yamlindex ba92f9f28f..8b3e35b53f 100644--- a/.github/workflows/build.yaml+++ b/.github/workflows/build.yaml@@ -11,9 +11,9 @@ jobs:check-no-ee-references:runs-on: ubuntu-lateststeps:- - uses: actions/checkout@v4- - name: Run check- run: make check-no-ee-references+ - uses: actions/checkout@v4+ - name: Run check+ run: make check-no-ee-referencesbuild-frontend:runs-on: ubuntu-latest@@ -43,7 +43,6 @@ jobs:run: |echo 'INTERCOM_APP_ID="${{ secrets.INTERCOM_APP_ID }}"' > frontend/.envecho 'SEGMENT_ID="${{ secrets.SEGMENT_ID }}"' >> frontend/.env- echo 'CLARITY_PROJECT_ID="${{ secrets.CLARITY_PROJECT_ID }}"' >> frontend/.env- name: Install dependenciesrun: cd frontend && yarn install- name: Run ESLintdiff --git a/.github/workflows/push.yaml b/.github/workflows/push.yamlindex 7808f9d18e..a440d2a5c7 100644--- a/.github/workflows/push.yaml+++ b/.github/workflows/push.yaml@@ -9,7 +9,6 @@ on:- v*jobs:-image-build-and-push-query-service:runs-on: ubuntu-lateststeps:@@ -151,7 +150,6 @@ jobs:run: |echo 'INTERCOM_APP_ID="${{ secrets.INTERCOM_APP_ID }}"' > frontend/.envecho 'SEGMENT_ID="${{ secrets.SEGMENT_ID }}"' >> frontend/.env- echo 'CLARITY_PROJECT_ID="${{ secrets.CLARITY_PROJECT_ID }}"' >> frontend/.envecho 'SENTRY_AUTH_TOKEN="${{ secrets.SENTRY_AUTH_TOKEN }}"' >> frontend/.envecho 'SENTRY_ORG="${{ secrets.SENTRY_ORG }}"' >> frontend/.envecho 'SENTRY_PROJECT_ID="${{ secrets.SENTRY_PROJECT_ID }}"' >> frontend/.envdiff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex b900255172..8400afbde3 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -137,7 +137,6 @@ function App(): JSX.Element {window.analytics.identify(email, sanitizedIdentifyPayload);window.analytics.group(domain, groupTraits);- window.clarity('identify', email, name);posthog?.identify(email, {email,diff --git a/frontend/src/index.html.ejs b/frontend/src/index.html.ejsindex 8a4e407ec5..f77e50f2b2 100644--- a/frontend/src/index.html.ejs+++ b/frontend/src/index.html.ejs@@ -114,25 +114,6 @@})();</script>- <script type="text/javascript">- //Set your CLARITY_PROJECT_ID- const CLARITY_PROJECT_ID =- '<%= htmlWebpackPlugin.options.CLARITY_PROJECT_ID %>';-- (function (c, l, a, r, i, t, y) {- c[a] =- c[a] ||- function () {- (c[a].q = c[a].q || []).push(arguments);- };- t = l.createElement(r);- t.async = 1;- t.src = 'https://www.clarity.ms/tag/' + i;- y = l.getElementsByTagName(r)[0];- y.parentNode.insertBefore(t, y);- })(window, document, 'clarity', 'script', CLARITY_PROJECT_ID);- </script>-<script>//Set your SEGMENT_IDconst SEGMENT_ID = '<%= htmlWebpackPlugin.options.SEGMENT_ID %>';diff --git a/frontend/src/typings/window.ts b/frontend/src/typings/window.tsindex 3bff939c2d..fc5b160451 100644--- a/frontend/src/typings/window.ts+++ b/frontend/src/typings/window.ts@@ -1,11 +1,8 @@import { compose, Store } from 'redux';-type ClarityType<T> = (...args: string[]) => T;-declare global {interface Window {store: Store;- clarity: ClarityType<string>;Intercom: any;analytics: Record<string, any>;__REDUX_DEVTOOLS_EXTENSION_COMPOSE__: typeof compose;diff --git a/frontend/webpack.config.js b/frontend/webpack.config.jsindex 8fc1188448..49d7f825af 100644--- a/frontend/webpack.config.js+++ b/frontend/webpack.config.js@@ -23,7 +23,6 @@ const plugins = [INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,SEGMENT_ID: process.env.SEGMENT_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,- CLARITY_PROJECT_ID: process.env.CLARITY_PROJECT_ID,SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN,SENTRY_ORG: process.env.SENTRY_ORG,SENTRY_PROJECT_ID: process.env.SENTRY_PROJECT_ID,@@ -42,7 +41,6 @@ const plugins = [INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,SEGMENT_ID: process.env.SEGMENT_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,- CLARITY_PROJECT_ID: process.env.CLARITY_PROJECT_ID,SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN,SENTRY_ORG: process.env.SENTRY_ORG,SENTRY_PROJECT_ID: process.env.SENTRY_PROJECT_ID,diff --git a/frontend/webpack.config.prod.js b/frontend/webpack.config.prod.jsindex f9af80bcf5..5f63d02858 100644--- a/frontend/webpack.config.prod.js+++ b/frontend/webpack.config.prod.js@@ -28,7 +28,6 @@ const plugins = [INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,SEGMENT_ID: process.env.SEGMENT_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,- CLARITY_PROJECT_ID: process.env.CLARITY_PROJECT_ID,SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN,SENTRY_ORG: process.env.SENTRY_ORG,SENTRY_PROJECT_ID: process.env.SENTRY_PROJECT_ID,@@ -52,7 +51,6 @@ const plugins = [INTERCOM_APP_ID: process.env.INTERCOM_APP_ID,SEGMENT_ID: process.env.SEGMENT_ID,POSTHOG_KEY: process.env.POSTHOG_KEY,- CLARITY_PROJECT_ID: process.env.CLARITY_PROJECT_ID,SENTRY_AUTH_TOKEN: process.env.SENTRY_AUTH_TOKEN,SENTRY_ORG: process.env.SENTRY_ORG,SENTRY_PROJECT_ID: process.env.SENTRY_PROJECT_ID,