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
fix: enable smart trace detail (#6596)
Nityananda Gohain02d8fdb2121e
diff --git a/ee/query-service/app/api/traces.go b/ee/query-service/app/api/traces.goindex 5c65089cd0..3864fc672e 100644--- a/ee/query-service/app/api/traces.go+++ b/ee/query-service/app/api/traces.go@@ -2,31 +2,32 @@ package apiimport ("net/http"++ "go.signoz.io/signoz/ee/query-service/app/db"+ "go.signoz.io/signoz/ee/query-service/model"+ baseapp "go.signoz.io/signoz/pkg/query-service/app"+ basemodel "go.signoz.io/signoz/pkg/query-service/model"+ "go.uber.org/zap")func (ah *APIHandler) searchTraces(w http.ResponseWriter, r *http.Request) {- ah.APIHandler.SearchTraces(w, r)- return-- // This is commented since this will be taken care by new trace API-- // if !ah.CheckFeature(basemodel.SmartTraceDetail) {- // zap.L().Info("SmartTraceDetail feature is not enabled in this plan")- // ah.APIHandler.SearchTraces(w, r)- // return- // }- // searchTracesParams, err := baseapp.ParseSearchTracesParams(r)- // if err != nil {- // RespondError(w, &model.ApiError{Typ: model.ErrorBadData, Err: err}, "Error reading params")- // return- // }-- // result, err := ah.opts.DataConnector.SearchTraces(r.Context(), searchTracesParams, db.SmartTraceAlgorithm)- // if ah.HandleError(w, err, http.StatusBadRequest) {- // return- // }-- // ah.WriteJSON(w, r, result)+ if !ah.CheckFeature(basemodel.SmartTraceDetail) {+ zap.L().Info("SmartTraceDetail feature is not enabled in this plan")+ ah.APIHandler.SearchTraces(w, r)+ return+ }+ searchTracesParams, err := baseapp.ParseSearchTracesParams(r)+ if err != nil {+ RespondError(w, &model.ApiError{Typ: model.ErrorBadData, Err: err}, "Error reading params")+ return+ }++ result, err := ah.opts.DataConnector.SearchTraces(r.Context(), searchTracesParams, db.SmartTraceAlgorithm)+ if ah.HandleError(w, err, http.StatusBadRequest) {+ return+ }++ ah.WriteJSON(w, r, result)}