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: convert livetail to a get endpoint (#3321)
Nityananda Gohain233589b86753
diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.goindex 2e5b6aeca5..885058f419 100644--- a/pkg/query-service/app/http_handler.go+++ b/pkg/query-service/app/http_handler.go@@ -7,6 +7,7 @@ import ("encoding/json""errors""fmt"+ "io""io/ioutil""net/http""sort"@@ -295,7 +296,7 @@ func (aH *APIHandler) RegisterQueryRangeV3Routes(router *mux.Router, am *AuthMidsubRouter.HandleFunc("/query_range", am.ViewAccess(aH.QueryRangeV3)).Methods(http.MethodPost)// live logs- subRouter.HandleFunc("/logs/livetail", am.ViewAccess(aH.liveTailLogs)).Methods(http.MethodPost)+ subRouter.HandleFunc("/logs/livetail", am.ViewAccess(aH.liveTailLogs)).Methods(http.MethodGet)}func (aH *APIHandler) Respond(w http.ResponseWriter, data interface{}) {@@ -3063,6 +3064,10 @@ func applyMetricLimit(results []*v3.Result, queryRangeParams *v3.QueryRangeParamfunc (aH *APIHandler) liveTailLogs(w http.ResponseWriter, r *http.Request) {+ // get the param from url and add it to body+ stringReader := strings.NewReader(r.URL.Query().Get("q"))+ r.Body = io.NopCloser(stringReader)+queryRangeParams, apiErrorObj := ParseQueryRangeParams(r)if apiErrorObj != nil {zap.S().Errorf(apiErrorObj.Err.Error())