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: onboarding API via proxy (#6058)
Vishal Sharma337a941d0dab
diff --git a/ee/query-service/app/api/gateway.go b/ee/query-service/app/api/gateway.goindex 15d274ee23..1154911a26 100644--- a/ee/query-service/app/api/gateway.go+++ b/ee/query-service/app/api/gateway.go@@ -9,7 +9,15 @@ import (func (ah *APIHandler) ServeGatewayHTTP(rw http.ResponseWriter, req *http.Request) {ctx := req.Context()- if !strings.HasPrefix(req.URL.Path, gateway.RoutePrefix+gateway.AllowedPrefix) {+ validPath := false+ for _, allowedPrefix := range gateway.AllowedPrefix {+ if strings.HasPrefix(req.URL.Path, gateway.RoutePrefix+allowedPrefix) {+ validPath = true+ break+ }+ }++ if !validPath {rw.WriteHeader(http.StatusNotFound)return}diff --git a/ee/query-service/integrations/gateway/proxy.go b/ee/query-service/integrations/gateway/proxy.goindex 8b225c4459..493dd4130b 100644--- a/ee/query-service/integrations/gateway/proxy.go+++ b/ee/query-service/integrations/gateway/proxy.go@@ -8,9 +8,9 @@ import ("strings")-const (+var (RoutePrefix string = "/api/gateway"- AllowedPrefix string = "/v1/workspaces/me"+ AllowedPrefix []string = []string{"/v1/workspaces/me", "/v2/profiles/me"})type proxy struct {