fix: traceability of the middleware plugins
This commit is contained in:
parent
7792d197e6
commit
47faae25d7
2 changed files with 27 additions and 1 deletions
|
@ -357,7 +357,7 @@ func (b *Builder) buildConstructor(ctx context.Context, middlewareName string) (
|
|||
}
|
||||
|
||||
middleware = func(next http.Handler) (http.Handler, error) {
|
||||
return plug(ctx, next)
|
||||
return newTraceablePlugin(ctx, middlewareName, plug, next)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue