HTTP custom tags can be used to add HTTP session attributes (e.g. current user name), remote client IP, etc... to captured business transactions and IntelliSense traces.
Navigate to InteliTrace -> Configure Dynamic Instrumentation and select HTTP Custom Tags tab.
Provide a name for the tag in the Label field and an Expression to get the value from HTTServletRequest object. Expressions are basically methods on the Javaï¿½s HttpServletRequest class and you can use any method exposed by the class to build expressions. And you can chain method calls to build complex expressions as shown in the examples.
|Username||getSession().getAttribute('accountBean').getUsername()||Get the object stored in session under accountBean key and call the getUsername method of that object to fetch the value|
|http_method||getMethod()||Save the HTTP method used for the request (GET or POST) and save it under the label http_method|
Save the Host name / IP of the client who made the request under the key remote_host
Viewing Captured Data
If you have enabled IntelliSense or Business Transaction monitoring with Transaction Tracing enabled, all configured Custom HTTP Tags will be evaluated at the time of saving a trace. Value of the expression will be saved under the defined label if a value is found (not null) after evaluating the expression.
Captured values for each transaction will be displayed in the trace windows of Business Transaction Analyzer and IntelliSense along with other HTTP request parameters