Package com.atlassian.bamboo.filter
Class NewRelicTransactionNamingFilter
- java.lang.Object
-
- com.atlassian.bamboo.filter.NewRelicTransactionNamingFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
public class NewRelicTransactionNamingFilter extends Object implements javax.servlet.Filter
Filter to add meaningful names to NewRelic transactions https://newrelic.com/docs/java/java-agent-component-based-web-transaction-naming
-
-
Field Summary
Fields Modifier and Type Field Description static String
NEWRELIC_TRANS_NAME_PARAM
-
Constructor Summary
Constructors Constructor Description NewRelicTransactionNamingFilter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
destroy()
void
doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain)
void
init(javax.servlet.FilterConfig config)
static void
setTransactionName(javax.servlet.ServletRequest request, String name)
-
-
-
Field Detail
-
NEWRELIC_TRANS_NAME_PARAM
public static final String NEWRELIC_TRANS_NAME_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest req, javax.servlet.ServletResponse resp, javax.servlet.FilterChain chain) throws javax.servlet.ServletException, IOException
- Specified by:
doFilter
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
IOException
-
setTransactionName
public static void setTransactionName(javax.servlet.ServletRequest request, String name)
-
init
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Filter
- Throws:
javax.servlet.ServletException
-
destroy
public void destroy()
- Specified by:
destroy
in interfacejavax.servlet.Filter
-
-