Class SentrySpanAdvice

java.lang.Object
io.sentry.spring.tracing.SentrySpanAdvice
All Implemented Interfaces:
org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

public class SentrySpanAdvice extends 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 Details

    • SentrySpanAdvice

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

    • invoke

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