Simple end-user tracking for Java EE web applications.
Servlet-Filter is an implementation of Java EE HTTP Servlet Filter. This servlet filter tracks the following:
- End-user performance, behavior
- HTTP request performance, errors, exceptions
- HTTP header, request parameters and attributes
- JVM context such as CPU, memory, GC
The output can be streamed to any of the TNT4J sinks: file, log4j, socket, visual analysis using jKoolCloud.
Simply add the following to your application's web.xml
:
<filter>
<filter-name>ServletFilter</filter-name>
<filter-class>com.jkoolcloud.tnt4j.servlet.filter.TrackingFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>ServletFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<context-param>
<param-name>op-level</param-name>
<param-value>DEBUG</param-value>
</context-param>
NOTE: Make sure all jar files required by ServletFilter
are in your application's classpath.
Servlet-Filter requires the following:
- JDK 1.8+
- TNT4J (https://github.com/Nastel/TNT4J)
Please use JCenter or Maven and these dependencies will be downloaded automatically.
Servlet-Filter requires TNT4J. You will need to point TNT4J to it's property file via the -Dtnt4j.config argument. This property file is located here in GitHub under the /config directory. If using JCenter or Maven, it can be found in the zip assembly along with the source code and javadoc.
- TNT4J (https://github.com/Nastel/TNT4J)
- jkoolcloud.com (https://www.jkoolcloud.com)
- AutoPilot M6 (http://www.nastel.com/products/autopilot-m6.html)