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.

removing unnecessary call to links (#180)

Ankit Nayan59749d0576c5
diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.go
index 7d0ec7bbbc..9d694cebe1 100644
--- a/pkg/query-service/app/http_handler.go
+++ b/pkg/query-service/app/http_handler.go
@@ -55,7 +55,7 @@ type structuredError struct {
// RegisterRoutes registers routes for this handler on the given router
func (aH *APIHandler) RegisterRoutes(router *mux.Router) {
- router.HandleFunc("/api/v1/user", aH.user).Methods(http.MethodPost)
+ router.HandleFunc("/api/v1/user", aH.user).Methods(http.MethodGet)
// router.HandleFunc("/api/v1/get_percentiles", aH.getApplicationPercentiles).Methods(http.MethodGet)
router.HandleFunc("/api/v1/services", aH.getServices).Methods(http.MethodGet)
router.HandleFunc("/api/v1/services/list", aH.getServicesList).Methods(http.MethodGet)
@@ -91,12 +91,6 @@ func (aH *APIHandler) user(w http.ResponseWriter, r *http.Request) {
Set("email", email),
})
- _, err = http.Get(fmt.Sprintf("https://api.telegram.org/bot1518273960:AAHcgVvym9a0Qkl-PKiCI84X1VZaVbkTud0/sendMessage?chat_id=351813222&text=%s", email))
-
- if err != nil {
- zap.S().Debug(err)
- }
-
}
func (aH *APIHandler) getOperations(w http.ResponseWriter, r *http.Request) {