fix(observabillity): include otel logs
Some checks failed
Build Docker Image / Build-Docker-Image (push) Failing after 4m29s

This commit is contained in:
2025-06-07 15:12:18 +02:00
parent e65146c71c
commit 661a3ba79f
26 changed files with 230 additions and 184 deletions

View File

@@ -4,10 +4,9 @@ import (
"compress/gzip"
"errors"
"io"
"log/slog"
"net/http"
"strings"
"spend-sparrow/internal/log"
)
type gzipResponseWriter struct {
@@ -34,7 +33,7 @@ func Gzip(next http.Handler) http.Handler {
err := gz.Close()
if err != nil && !errors.Is(err, http.ErrBodyNotAllowed) {
log.L.Error("Gzip: could not close Writer", "err", err)
slog.Error("Gzip: could not close Writer", "err", err)
}
})
}