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: send obfuscate query in the clickhouse query panel update (#10848)
Nikhil Sonie543776efc8e
diff --git a/frontend/src/container/NewWidget/index.tsx b/frontend/src/container/NewWidget/index.tsxindex 1f1f855fc1..38e4b16354 100644--- a/frontend/src/container/NewWidget/index.tsx+++ b/frontend/src/container/NewWidget/index.tsx@@ -677,6 +677,18 @@ function NewWidget({queryType: currentQuery.queryType,isNewPanel,dataSource: currentQuery?.builder?.queryData?.[0]?.dataSource,+ ...(currentQuery.queryType === EQueryType.CLICKHOUSE && {+ clickhouseQueryCount: currentQuery.clickhouse_sql.length,+ clickhouseQueries: currentQuery.clickhouse_sql.map((q) => ({+ name: q.name,+ query: (q.query ?? '')+ .replace(/--[^\n]*/g, '') // strip line comments+ .replace(/\/\*[\s\S]*?\*\//g, '') // strip block comments+ .replace(/'(?:[^'\\]|\\.|'')*'/g, "'?'") // replace single-quoted strings (handles \' and '' escapes)+ .replace(/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b/g, '?'), // replace numeric literals (int, float, scientific)+ disabled: q.disabled,+ })),+ }),});setSaveModal(true);// eslint-disable-next-line react-hooks/exhaustive-deps