Skip to content

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.

fix: OSS telemetry for the number of services (#7908)

Nageshbansaldfca5b13c051
diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.go
index 53fd90e572..92ae4b6b55 100644
--- a/pkg/query-service/app/http_handler.go
+++ b/pkg/query-service/app/http_handler.go
@@ -1711,7 +1711,7 @@ func (aH *APIHandler) getServices(w http.ResponseWriter, r *http.Request) {
"number": len(*result),
}
claims, errv2 := authtypes.ClaimsFromContext(r.Context())
- if errv2 != nil {
+ if errv2 == nil {
telemetry.GetInstance().SendEvent(telemetry.TELEMETRY_EVENT_NUMBER_OF_SERVICES, data, claims.Email, true, false)
}