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 if performance is enabled. Otherwise just reads tracing information from incoming request.
  • 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 jakarta.servlet.http.HttpServletRequest httpRequest, @NotNull @NotNull jakarta.servlet.http.HttpServletResponse httpResponse, @NotNull @NotNull jakarta.servlet.FilterChain filterChain) throws jakarta.servlet.ServletException, IOException
      Throws:
      jakarta.servlet.ServletException
      IOException