Class NoopTransactionConfigurator
java.lang.Object
enterprises.iwakura.sigewine.aop.sentry.TransactionConfigurator
enterprises.iwakura.sigewine.aop.sentry.NoopTransactionConfigurator
A no-operation implementation of
TransactionConfigurator.
This configurator does nothing when the SentryTransaction annotation is used.
It can be used as a default or fallback configurator when no specific configuration is needed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(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
-
NoopTransactionConfigurator
public NoopTransactionConfigurator()
-
-
Method Details
-
configure
public void configure(SentryTransaction annotation, io.sentry.TransactionOptions txOptions, Class<?> callerClass, Method callerMethod, Object[] args) Description copied from class:TransactionConfiguratorConfigures the transaction options based on the provided annotation and method context.- Specified by:
configurein classTransactionConfigurator- 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
-