Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Instrumentation of

...

Apache Tomcat

...

Based on various tests with InspectIT and Documantation documentation the best instrumantation instrumentation point for Apache Tomcat , or other products that use the Cayote Coyote Connector , was determined:

Its the function org.apache.coyote.http11.Http11Processor.prepareRequest() which is responsible to convert a recived received request to such a format, that it can be futher procesed further processed by Tomcat's internal engine.

You need only to instrument this function so, that the following the header is access accessed and removed at the end of the method:

...

.

The headers are stored in the variable "headers". Its class provides the functions to access and remove:

            headers.getValue("InspectITID"); // To access the ID
            headers.removeHeader("InspectITID"); // To remove the header
        }