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.

added kind as url param in parser for span search

Ankit Nayanb3755325ba1a
diff --git a/pkg/query-service/app/parser.go b/pkg/query-service/app/parser.go
index 692fc8b74e..2dd1714ffc 100644
--- a/pkg/query-service/app/parser.go
+++ b/pkg/query-service/app/parser.go
@@ -241,6 +241,12 @@ func parseSearchSpanAggregatesRequest(r *http.Request) (*model.SpanSearchAggrega
zap.S().Debug("Operation Name: ", operationName)
}
+ kind := r.URL.Query().Get("kind")
+ if len(kind) != 0 {
+ params.Kind = kind
+ zap.S().Debug("Kind: ", kind)
+ }
+
minDuration, err := parseTimestamp("minDuration", r)
if err == nil {
params.MinDuration = *minDuration
@@ -292,6 +298,12 @@ func parseSpanSearchRequest(r *http.Request) (*model.SpanSearchParams, error) {
zap.S().Debug("Operation Name: ", operationName)
}
+ kind := r.URL.Query().Get("kind")
+ if len(kind) != 0 {
+ params.Kind = kind
+ zap.S().Debug("Kind: ", kind)
+ }
+
minDuration, err := parseTimestamp("minDuration", r)
if err == nil {
params.MinDuration = *minDuration