diff --git a/web/new.go b/web/new.go index c229bf6e..7419ebe4 100644 --- a/web/new.go +++ b/web/new.go @@ -96,7 +96,7 @@ func New() *echo.Echo { reqIP := c.RealIP() c.SetRequest(c.Request(). - WithContext(context.WithValue(context.Background(), logger.RequestKey, &logger.RequestTrace{ + WithContext(context.WithValue(c.Request().Context(), logger.RequestKey, &logger.RequestTrace{ IP: reqIP, ReqID: reqID, })))