Class SpringMvcTransactionNameProvider

java.lang.Object
io.sentry.spring.jakarta.tracing.SpringMvcTransactionNameProvider
All Implemented Interfaces:
TransactionNameProvider

@Internal public final class SpringMvcTransactionNameProvider extends Object implements TransactionNameProvider
Resolves transaction name using HttpServletRequest.getMethod() and templated route that handled the request. To return correct transaction name, it must be used after request is processed by RequestMappingInfoHandlerMapping where HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE is set.
  • Constructor Details

    • SpringMvcTransactionNameProvider

      public SpringMvcTransactionNameProvider()
  • Method Details