Class TransactionConfigurator
java.lang.Object
enterprises.iwakura.sigewine.aop.sentry.TransactionConfigurator
- Direct Known Subclasses:
NoopTransactionConfigurator
Abstract class for configuring Sentry transactions.
This class should be extended to provide custom transaction configurations.
The
configure(SentryTransaction, TransactionOptions, Class, Method, Object[]) method must be implemented to apply the desired
configuration.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidconfigure(SentryTransaction annotation, io.sentry.TransactionOptions txOptions, Class<?> callerClass, Method callerMethod, Object[] args) Configures the transaction options based on the provided annotation and method context.
-
Constructor Details
-
TransactionConfigurator
public TransactionConfigurator()
-
-
Method Details
-
configure
public abstract void configure(SentryTransaction annotation, io.sentry.TransactionOptions txOptions, Class<?> callerClass, Method callerMethod, Object[] args) Configures the transaction options based on the provided annotation and method context.- Parameters:
annotation- the SentryTransaction annotationtxOptions- the TransactionOptions to configure. If there's a transaction in the current scope, this should be treated this as aSpanOptions.callerClass- the class where the method is called fromcallerMethod- the method where the transaction is calledargs- the arguments passed to the method
-