After middleware execution, the logger should be updated to reflect any changes to the context having been made in the middlewares. For example, if I have a tracing middleware that executes the following code, these attributes do not end up in the log:
After middleware execution, the logger should be updated to reflect any changes to the context having been made in the middlewares. For example, if I have a tracing middleware that executes the following code, these attributes do not end up in the log:
To make it work, we need to update the context after middlewares have executed.