feat: support **struct in mapping (#2784)
* feat: support **struct in mapping * chore: fix test failure
This commit is contained in:
@@ -118,7 +118,7 @@ func (ng *engine) buildChainWithNativeMiddlewares(fr featuredRoutes, route Route
|
||||
chn := chain.New()
|
||||
|
||||
if ng.conf.Middlewares.Trace {
|
||||
chn = chn.Append(handler.TracingHandler(ng.conf.Name,
|
||||
chn = chn.Append(handler.TraceHandler(ng.conf.Name,
|
||||
route.Path,
|
||||
handler.WithTraceIgnorePaths(ng.conf.TraceIgnorePaths)))
|
||||
}
|
||||
@@ -204,7 +204,7 @@ func (ng *engine) getShedder(priority bool) load.Shedder {
|
||||
func (ng *engine) notFoundHandler(next http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
|
||||
chn := chain.New(
|
||||
handler.TracingHandler(ng.conf.Name,
|
||||
handler.TraceHandler(ng.conf.Name,
|
||||
"",
|
||||
handler.WithTraceIgnorePaths(ng.conf.TraceIgnorePaths)),
|
||||
ng.getLogHandler(),
|
||||
|
||||
Reference in New Issue
Block a user