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 Details

  • Constructor Details

    • NewRelicTransactionNamingFilter

      public NewRelicTransactionNamingFilter()
  • Method Details

    • 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 interface javax.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 interface javax.servlet.Filter
      Throws:
      javax.servlet.ServletException
    • destroy

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