Class SentryTransactionMethodWrapper
java.lang.Object
enterprises.iwakura.sigewine.aop.MethodWrapper<SentryTransaction>
enterprises.iwakura.sigewine.aop.sentry.SentryTransactionMethodWrapper
public final class SentryTransactionMethodWrapper
extends enterprises.iwakura.sigewine.aop.MethodWrapper<SentryTransaction>
Method wrapper for Sentry transactions.
This class handles the creation and management of Sentry transactions and spans based on the
SentryTransaction annotation.
It supports binding to the current scope, capturing exceptions, and using custom configurators for transaction options.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance of SentryMethodWrapper. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterInvocation(Object target, Method method, Object[] args, SentryTransaction annotation, Optional<Object> optionalResult, Optional<Throwable> optionalThrowable, Object proxy) protected voidbeforeInvocation(Object target, Method method, Object[] args, SentryTransaction annotation, Object proxy) Methods inherited from class enterprises.iwakura.sigewine.aop.MethodWrapper
getAnnotatedMethods, getAnnotatedMethodsCache, getAnnotationClass
-
Constructor Details
-
SentryTransactionMethodWrapper
public SentryTransactionMethodWrapper()Creates a new instance of SentryMethodWrapper.
-
-
Method Details
-
beforeInvocation
protected void beforeInvocation(Object target, Method method, Object[] args, SentryTransaction annotation, Object proxy) - Specified by:
beforeInvocationin classenterprises.iwakura.sigewine.aop.MethodWrapper<SentryTransaction>
-
afterInvocation
protected void afterInvocation(Object target, Method method, Object[] args, SentryTransaction annotation, Optional<Object> optionalResult, Optional<Throwable> optionalThrowable, Object proxy) - Specified by:
afterInvocationin classenterprises.iwakura.sigewine.aop.MethodWrapper<SentryTransaction>
-