Class SentryTracingFilter

All Implemented Interfaces:
javax.servlet.Filter, Aware, BeanNameAware, DisposableBean, InitializingBean, EnvironmentAware, EnvironmentCapable, ServletContextAware

public class SentryTracingFilter extends OncePerRequestFilter
Creates ITransaction around HTTP request executions.
  • Constructor Details

    • SentryTracingFilter

      public SentryTracingFilter()
      Creates filter that resolves transaction name using SpringMvcTransactionNameProvider.

      Only requests that have HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE request attribute set are turned into transactions. This attribute is set in RequestMappingInfoHandlerMapping on request that have not been dropped with any Filter.

    • SentryTracingFilter

      public SentryTracingFilter(@NotNull @NotNull IHub hub, @NotNull @NotNull TransactionNameProvider transactionNameProvider)
      Creates filter that resolves transaction name using transaction name provider given by parameter.
      Parameters:
      hub - - the hub
      transactionNameProvider - - transaction name provider.
    • SentryTracingFilter

      public SentryTracingFilter(@NotNull @NotNull IHub hub)
  • Method Details

    • doFilterInternal

      protected void doFilterInternal(@NotNull @NotNull javax.servlet.http.HttpServletRequest httpRequest, @NotNull @NotNull javax.servlet.http.HttpServletResponse httpResponse, @NotNull @NotNull javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
      Specified by:
      doFilterInternal in class OncePerRequestFilter
      Throws:
      javax.servlet.ServletException
      IOException