Class ScalaForkJoinTaskInstrumentation.ForkJoinTaskAdvice

    • Constructor Detail

      • ForkJoinTaskAdvice

        public ForkJoinTaskAdvice()
    • Method Detail

      • enter

        @OnMethodEnter(suppress=java.lang.Throwable.class)
        public static io.opentelemetry.context.Scope enter​(@This
                                                           scala.concurrent.forkjoin.ForkJoinTask<?> thiz)
        When ForkJoinTask object is submitted to ForkJoinPool as Runnable or Callable it will not get wrapped, instead it will be casted to ForkJoinTask directly. This means state is still stored in Runnable or Callable and we need to use that state.