I have a Spring Boot servlet web service which is called with some HTTP header information. I need to output this header information in any trace files which are produced by the application. Tracing is done my log4j2, and I'm after advice as to how to ensure that this header information is available to all classes within the application so it can be included in the logs.
I thought about placing the information into session, and then make this httpSession object available thoughout the application but this seems like overkill. Are there any other recommended ways to do this?