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.

chore(user): return user resource on register user request (#8271)

Vikrant Gupta7672d2f636bf
diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.go
index d3ca8d47cd..9844546628 100644
--- a/pkg/query-service/app/http_handler.go
+++ b/pkg/query-service/app/http_handler.go
@@ -2023,7 +2023,7 @@ func (aH *APIHandler) registerUser(w http.ResponseWriter, r *http.Request) {
return
}
- _, errv2 := aH.Signoz.Modules.User.Register(r.Context(), &req)
+ user, errv2 := aH.Signoz.Modules.User.Register(r.Context(), &req)
if errv2 != nil {
render.Error(w, errv2)
return
@@ -2033,7 +2033,7 @@ func (aH *APIHandler) registerUser(w http.ResponseWriter, r *http.Request) {
// from here onwards, we expect admin (owner) to invite other users.
aH.SetupCompleted = true
- aH.Respond(w, nil)
+ aH.Respond(w, user)
}
func handleSsoError(w http.ResponseWriter, r *http.Request, redirectURL string) {