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: disable telemetry in CI (#3405)
Raj Kamal Singh34be2953d342
diff --git a/pkg/query-service/constants/constants.go b/pkg/query-service/constants/constants.goindex fa642e2e60..e0d8fcbaa2 100644--- a/pkg/query-service/constants/constants.go+++ b/pkg/query-service/constants/constants.go@@ -3,6 +3,7 @@ package constantsimport ("os""strconv"+ "testing""time""go.signoz.io/signoz/pkg/query-service/model"@@ -21,6 +22,10 @@ var ConfigSignozIo = "https://config.signoz.io/api/v1"var DEFAULT_TELEMETRY_ANONYMOUS = falsefunc IsTelemetryEnabled() bool {+ if testing.Testing() {+ return false+ }+isTelemetryEnabledStr := os.Getenv("TELEMETRY_ENABLED")isTelemetryEnabledBool, err := strconv.ParseBool(isTelemetryEnabledStr)if err != nil {diff --git a/pkg/query-service/telemetry/telemetry.go b/pkg/query-service/telemetry/telemetry.goindex 0b88b19822..4cb4f501a3 100644--- a/pkg/query-service/telemetry/telemetry.go+++ b/pkg/query-service/telemetry/telemetry.go@@ -8,6 +8,7 @@ import ("os""strings""sync"+ "testing""time"ph "github.com/posthog/posthog-go"@@ -131,6 +132,13 @@ type Telemetry struct {}func createTelemetry() {+ // Do not do anything in CI (not even resolving the outbound IP address)+ if testing.Testing() {+ telemetry = &Telemetry{+ isEnabled: false,+ }+ return+ }telemetry = &Telemetry{operator: analytics.New(api_key),