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(render): add missing Content-Type header in Error() response (#11890)

Himanshu RW10217274b887
diff --git a/pkg/http/render/render.go b/pkg/http/render/render.go
index f8aea2b949..2912db9711 100644
--- a/pkg/http/render/render.go
+++ b/pkg/http/render/render.go
@@ -130,6 +130,7 @@ func Error(rw http.ResponseWriter, cause error) {
rw.Header().Set("Retry-After", strconv.Itoa(int(math.Ceil(d.Seconds()))))
}
+ rw.Header().Set("Content-Type", "application/json")
rw.WriteHeader(httpCode)
_, _ = rw.Write(body)
}