Service name (namespace) from k8n.
This factory using for “context-logger”.
Panic will be handled by this handler.
Tracer for OpenTrace. Should be nil. By default middleware will use GlobalTracer and this is enough for most of our use-cases.
Disable access log
For exiting code you can initialize middlewares by yourself.
You have to follow this order of middlewares on for router initialization:
For the panic case, recoverer does not responsible for error response, it only sends HTTP response code 500.
For response with error messages you have to define panic handler and pass it as argument.
Improved ReqResLogger which write log into JSON format and ignore binary(non-text) body.
Authentication & Authorization
Authentication middleware receive user information only and set it into the context.
ACL middleware using for access control.