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(web): gate sentry and pylon init behind boot settings flags (#11498)
SagarRajput-71928de745256
diff --git a/frontend/index.html b/frontend/index.htmlindex 250dd770c2..9fd16d4c73 100644--- a/frontend/index.html+++ b/frontend/index.html@@ -112,7 +112,10 @@<script>var PYLON_APP_ID = '<%- PYLON_APP_ID %>';- if (PYLON_APP_ID) {+ var pylonSettings =+ ((window.signozBootData || {}).settings || {}).pylon || {};+ var pylonEnabled = pylonSettings.enabled !== false;+ if (PYLON_APP_ID && pylonEnabled) {(function () {var e = window;var t = document;diff --git a/frontend/src/AppRoutes/index.tsx b/frontend/src/AppRoutes/index.tsxindex ca290d291d..62a28ae1d8 100644--- a/frontend/src/AppRoutes/index.tsx+++ b/frontend/src/AppRoutes/index.tsx@@ -291,7 +291,8 @@ function App(): JSX.Element {isLoggedInState &&isChatSupportEnabled &&!showAddCreditCardModal &&- (isCloudUser || isEnterpriseSelfHostedUser)+ (isCloudUser || isEnterpriseSelfHostedUser) &&+ (window.signozBootData?.settings?.pylon.enabled ?? true)) {const email = user.email || '';const secret = process.env.PYLON_IDENTITY_SECRET || '';@@ -343,7 +344,10 @@ function App(): JSX.Element {});}- if (!isSentryInitialized) {+ if (+ !isSentryInitialized &&+ (window.signozBootData?.settings?.sentry.enabled ?? true)+ ) {Sentry.init({dsn: process.env.SENTRY_DSN,tunnel: process.env.TUNNEL_URL,diff --git a/frontend/vite.config.ts b/frontend/vite.config.tsindex 63cac64ba2..eb9132da10 100644--- a/frontend/vite.config.ts+++ b/frontend/vite.config.ts@@ -31,6 +31,8 @@ function devBootDataPlugin(env: Record<string, string>): Plugin {const settings = {posthog: { enabled: env.VITE_POSTHOG_ENABLED !== 'false' },appcues: { enabled: env.VITE_APPCUES_ENABLED !== 'false' },+ sentry: { enabled: env.VITE_SENTRY_ENABLED !== 'false' },+ pylon: { enabled: env.VITE_PYLON_ENABLED !== 'false' },};return html.replaceAll('[[.Settings]]', JSON.stringify(settings));},