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: exclude internal attributes from promQL results (#10465)
Naman Verma0e1bb5fd91ba
diff --git a/pkg/querier/promql_query.go b/pkg/querier/promql_query.goindex 0a6fd44f43..ff59371132 100644--- a/pkg/querier/promql_query.go+++ b/pkg/querier/promql_query.go@@ -237,11 +237,21 @@ func (q *promqlQuery) Execute(ctx context.Context) (*qbv5.Result, error) {return nil, errors.WrapInternalf(promErr, errors.CodeInternal, "error getting matrix from promql query %q", query)}+ excludeLabel := func(labelName string) bool {+ if labelName == "__name__" {+ return false+ }+ return strings.HasPrefix(labelName, "__") || labelName == "fingerprint"+ }+var series []*qbv5.TimeSeriesfor _, v := range matrix {var s qbv5.TimeSerieslbls := make([]*qbv5.Label, 0, len(v.Metric))for name, value := range v.Metric.Copy().Map() {+ if excludeLabel(name) {+ continue+ }lbls = append(lbls, &qbv5.Label{Key: telemetrytypes.TelemetryFieldKey{Name: name},Value: value,