com.atlassian.bamboo.filter
Class NewRelicTransactionNamingFilter

java.lang.Object
  extended by com.atlassian.bamboo.filter.NewRelicTransactionNamingFilter
All Implemented Interfaces:
javax.servlet.Filter

public class NewRelicTransactionNamingFilter
extends java.lang.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
static java.lang.String NEWRELIC_TRANS_NAME_PARAM
           
 
Constructor Summary
NewRelicTransactionNamingFilter()
           
 
Method Summary
 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, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWRELIC_TRANS_NAME_PARAM

public static final java.lang.String NEWRELIC_TRANS_NAME_PARAM
See Also:
Constant Field Values
Constructor Detail

NewRelicTransactionNamingFilter

public NewRelicTransactionNamingFilter()
Method Detail

doFilter

public void doFilter(javax.servlet.ServletRequest req,
                     javax.servlet.ServletResponse resp,
                     javax.servlet.FilterChain chain)
              throws javax.servlet.ServletException,
                     java.io.IOException
Specified by:
doFilter in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException
java.io.IOException

setTransactionName

public static void setTransactionName(javax.servlet.ServletRequest request,
                                      java.lang.String name)

init

public void init(javax.servlet.FilterConfig config)
          throws javax.servlet.ServletException
Specified by:
init in interface javax.servlet.Filter
Throws:
javax.servlet.ServletException

destroy

public void destroy()
Specified by:
destroy in interface javax.servlet.Filter


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.