Open
Description
I'm submitting a...
[ ] Regression
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
Middleware exists for HTTP but not for Microservices.
Expected behavior
I would like to be able to create middleware functions for Microservices to introduce something like a request context for logging.
Example:
export function MicroserviceMiddleware(context: ExecutionContext, next) {
// .. do some stuff with the context
next()
}
This is different to interceptors because it spans over all guards, interceptors and exception filters.
Or ist there already another way to do this?
Thanks in advance
Environment
Nest version: 5.7.3