Package io.sentry.spring.tracing
Class CombinedTransactionNameProvider
java.lang.Object
io.sentry.spring.tracing.CombinedTransactionNameProvider
- All Implemented Interfaces:
TransactionNameProvider
@Internal
public final class CombinedTransactionNameProvider
extends Object
implements TransactionNameProvider
Resolves transaction name using other transaction name providers by invoking them in order. If a
provider returns no transaction name, the next one is invoked.
-
Constructor Summary
ConstructorsConstructorDescriptionCombinedTransactionNameProvider(@NotNull List<TransactionNameProvider> providers) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringprovideTransactionName(@NotNull javax.servlet.http.HttpServletRequest request) Resolves transaction name fromHttpServletRequest.@NotNull TransactionNameWithSourceprovideTransactionNameAndSource(@NotNull javax.servlet.http.HttpServletRequest request) @NotNull io.sentry.protocol.TransactionNameSourceReturns the source of the transaction name.
-
Constructor Details
-
CombinedTransactionNameProvider
-
-
Method Details
-
provideTransactionName
@Nullable public @Nullable String provideTransactionName(@NotNull @NotNull javax.servlet.http.HttpServletRequest request) Description copied from interface:TransactionNameProviderResolves transaction name fromHttpServletRequest.- Specified by:
provideTransactionNamein interfaceTransactionNameProvider- Parameters:
request- - the http request- Returns:
- transaction name or
nullif not resolved
-
provideTransactionSource
@Internal @NotNull public @NotNull io.sentry.protocol.TransactionNameSource provideTransactionSource()Description copied from interface:TransactionNameProviderReturns the source of the transaction name. Only to be used internally.- Specified by:
provideTransactionSourcein interfaceTransactionNameProvider
-
provideTransactionNameAndSource
@Internal @NotNull public @NotNull TransactionNameWithSource provideTransactionNameAndSource(@NotNull @NotNull javax.servlet.http.HttpServletRequest request) - Specified by:
provideTransactionNameAndSourcein interfaceTransactionNameProvider
-