Added OpenTelemetry and use structured logging

This commit is contained in:
Robin Dittmar
2026-07-07 16:18:14 +02:00
parent 860563b47f
commit 0dec97a865
10 changed files with 191 additions and 30 deletions
+3 -2
View File
@@ -11,9 +11,10 @@ type healthResponse struct {
}
func HealthHandler(w http.ResponseWriter, r *http.Request) {
_ = r
ctx := r.Context()
resp := healthResponse{
Status: "ok",
}
response.JSON(w, http.StatusOK, resp)
response.JSON(ctx, w, http.StatusOK, resp)
}