Package io.sentry.spring.tracing
Class TransactionNameProvider
- java.lang.Object
-
- io.sentry.spring.tracing.TransactionNameProvider
-
@Internal public final class TransactionNameProvider extends java.lang.Object
Resolves transaction name usingHttpServletRequest.getMethod()
and templated route that handled the request. To return correct transaction name, it must be used after request is processed byRequestMappingInfoHandlerMapping
whereHandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE
is set.
-
-
Constructor Summary
Constructors Constructor Description TransactionNameProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable java.lang.String
provideTransactionName(@NotNull javax.servlet.http.HttpServletRequest request)
-