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.

fix(kafka): fix nil pointer error in evaluation api (#10015)

Pandeya5c021e96c06
diff --git a/pkg/query-service/app/http_handler.go b/pkg/query-service/app/http_handler.go
index 8312048eca..0491783777 100644
--- a/pkg/query-service/app/http_handler.go
+++ b/pkg/query-service/app/http_handler.go
@@ -3135,7 +3135,10 @@ func (aH *APIHandler) getProducerConsumerEval(w http.ResponseWriter, r *http.Req
queryRangeParams, err := kafka.BuildQueryRangeParams(messagingQueue, "producer-consumer-eval", kafkaSpanEval)
if err != nil {
zap.L().Error(err.Error())
- RespondError(w, apiErr, nil)
+ RespondError(w, &model.ApiError{
+ Typ: model.ErrorBadData,
+ Err: err,
+ }, nil)
return
}