We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3968b97 commit d9c852bCopy full SHA for d9c852b
pkg/apiserver/web/router.go
@@ -13,6 +13,7 @@ governing permissions and limitations under the License.
13
package web
14
15
import (
16
+ "github.com/google/uuid"
17
"github.com/labstack/echo/v4"
18
"github.com/labstack/echo/v4/middleware"
19
"github.com/labstack/gommon/log"
@@ -30,5 +31,11 @@ func NewRouter() *echo.Echo {
30
31
AllowMethods: []string{echo.GET, echo.HEAD},
32
}))
33
e.Validator = NewValidator()
34
+ e.Use(middleware.RequestIDWithConfig(middleware.RequestIDConfig{
35
+ Generator: func() string {
36
+ id := uuid.New()
37
+ return id.String()
38
+ },
39
+ }))
40
return e
41
}
0 commit comments