Class SentrySpanAdvice

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    public class SentrySpanAdvice
    extends java.lang.Object
    implements org.aopalliance.intercept.MethodInterceptor
    Creates a span from every bean method executed within SentryTransaction. Depending on the configured pointcut, method either must or can be annotated with SentrySpan.
    • Constructor Summary

      Constructors 
      Constructor Description
      SentrySpanAdvice​(@NotNull io.sentry.IHub hub)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object invoke​(@NotNull org.aopalliance.intercept.MethodInvocation invocation)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SentrySpanAdvice

        public SentrySpanAdvice​(@NotNull
                                @NotNull io.sentry.IHub hub)
    • Method Detail

      • invoke

        public java.lang.Object invoke​(@NotNull
                                       @NotNull org.aopalliance.intercept.MethodInvocation invocation)
                                throws java.lang.Throwable
        Specified by:
        invoke in interface org.aopalliance.intercept.MethodInterceptor
        Throws:
        java.lang.Throwable