Instrumentation of Apache Tomcat
Based on various tests with InspectIT and documentation the best instrumentation point for Apache Tomcat or other products that use the Coyote Connector was determined:
Its the function org.apache.coyote.http11.Http11Processor.prepareRequest() which is responsible to convert a received request to such a format, that it can be further processed by Tomcat's internal engine.
You need only to instrument this function so, that the header is accessed and removed at the end of the method:
if (null != headers.getValue("InspectITID")) {
headers.getValue("InspectITID"); // To access the ID
headers.removeHeader("InspectITID"); // To remove the header
}