diff --git a/middleware.go b/middleware.go index d7f2151..f1efb73 100644 --- a/middleware.go +++ b/middleware.go @@ -72,7 +72,7 @@ func NewWithConfig(logger *slog.Logger, config Config) echo.MiddlewareFunc { attributes := []slog.Attr{ slog.Time("time", end), - slog.String("latency", latency.String()), + slog.Duration("latency", latency), slog.String("method", method), slog.String("path", path), slog.Int("status", status),