fix: traceability of the middleware plugins

This commit is contained in:
Ludovic Fernandez 2023-07-20 15:02:07 +02:00 committed by GitHub
parent 7792d197e6
commit 47faae25d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 1 deletions

View file

@ -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)
}
}