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: use 404 consitantly for missing spans (#11289)
Nikhil Soni59a757f9bb6d
diff --git a/pkg/modules/spanpercentile/implspanpercentile/module.go b/pkg/modules/spanpercentile/implspanpercentile/module.goindex f5ee853241..32ce7aa6ee 100644--- a/pkg/modules/spanpercentile/implspanpercentile/module.go+++ b/pkg/modules/spanpercentile/implspanpercentile/module.go@@ -52,7 +52,7 @@ func (m *module) GetSpanPercentile(ctx context.Context, orgID valuer.UUID, req *func transformToSpanPercentileResponse(queryResult *qbtypes.QueryRangeResponse) (*spanpercentiletypes.SpanPercentileResponse, error) {if len(queryResult.Data.Results) == 0 {- return nil, errors.New(errors.TypeInternal, errors.CodeInternal, "no data returned from query")+ return nil, errors.New(errors.TypeNotFound, errors.CodeNotFound, "no spans found matching the specified criteria")}scalarData, ok := queryResult.Data.Results[0].(*qbtypes.ScalarData)@@ -61,7 +61,7 @@ func transformToSpanPercentileResponse(queryResult *qbtypes.QueryRangeResponse)}if len(scalarData.Data) == 0 {- return nil, errors.New(errors.TypeInternal, errors.CodeInternal, "no rows returned from query")+ return nil, errors.New(errors.TypeNotFound, errors.CodeNotFound, "no spans found matching the specified criteria")}row := scalarData.Data[0]