Package io.sentry.spring.tracing
Class SpringServletTransactionNameProvider
java.lang.Object
io.sentry.spring.tracing.SpringServletTransactionNameProvider
- All Implemented Interfaces:
TransactionNameProvider
@Internal
public final class SpringServletTransactionNameProvider
extends Object
implements TransactionNameProvider
Fallback TransactionNameProvider when Spring is used in servlet mode (without MVC).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
provideTransactionName
(@NotNull javax.servlet.http.HttpServletRequest request) Resolves transaction name fromHttpServletRequest
.@NotNull TransactionNameSource
Returns the source of the transaction name.
-
Constructor Details
-
SpringServletTransactionNameProvider
public SpringServletTransactionNameProvider()
-
-
Method Details
-
provideTransactionName
@Nullable public @Nullable String provideTransactionName(@NotNull @NotNull javax.servlet.http.HttpServletRequest request) Description copied from interface:TransactionNameProvider
Resolves transaction name fromHttpServletRequest
.- Specified by:
provideTransactionName
in interfaceTransactionNameProvider
- Parameters:
request
- - the http request- Returns:
- transaction name or
null
if not resolved
-
provideTransactionSource
Description copied from interface:TransactionNameProvider
Returns the source of the transaction name. Only to be used internally.- Specified by:
provideTransactionSource
in interfaceTransactionNameProvider
-