Package io.sentry.spring.tracing
Interface TransactionNameProvider
- All Known Implementing Classes:
SpringMvcTransactionNameProvider
,SpringServletTransactionNameProvider
public interface TransactionNameProvider
Resolves transaction name from
HttpServletRequest
.
With Spring MVC - use SpringMvcTransactionNameProvider
.
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
provideTransactionName
(@NotNull javax.servlet.http.HttpServletRequest request) Resolves transaction name fromHttpServletRequest
.default @NotNull TransactionNameSource
Returns the source of the transaction name.
-
Method Details
-
provideTransactionName
@Nullable @Nullable String provideTransactionName(@NotNull @NotNull javax.servlet.http.HttpServletRequest request) Resolves transaction name fromHttpServletRequest
.- Parameters:
request
- - the http request- Returns:
- transaction name or
null
if not resolved
-
provideTransactionSource
Returns the source of the transaction name. Only to be used internally.
-