In order to create a filter, we simply need to implement theFilterinterface: @Component@Order(1)publicclassTransactionFilterimplementsFilter{@OverridepublicvoiddoFilter( ServletRequest request, ServletResponse response, FilterChain chain)throwsIOException, ServletException {HttpServletRequestreq=(HttpServletRequ...
Since we use MDC tagged logging to put trace IDs into every log message and use a log aggregator to be able to search for all log messages across all microservices related to a given trace ID when investigating that request, switching trace IDs halfway through the request when we technically...