Class TransactionConfigurator

java.lang.Object
enterprises.iwakura.sigewine.aop.sentry.TransactionConfigurator
Direct Known Subclasses:
NoopTransactionConfigurator

public abstract class TransactionConfigurator extends Object
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 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 annotation
      txOptions - the TransactionOptions to configure. If there's a transaction in the current scope, this should be treated this as a SpanOptions.
      callerClass - the class where the method is called from
      callerMethod - the method where the transaction is called
      args - the arguments passed to the method