Class ExecutorInstrumentor

java.lang.Object
org.springframework.cloud.sleuth.instrument.async.ExecutorInstrumentor

public class ExecutorInstrumentor extends Object
Wraps Executors in tracing representations.
Since:
3.0.0
Author:
Marcin Grzejszczak
  • Constructor Details

    • ExecutorInstrumentor

      public ExecutorInstrumentor(Supplier<List<String>> ignoredBeans, org.springframework.beans.factory.BeanFactory beanFactory)
  • Method Details

    • isApplicableForInstrumentation

      public static boolean isApplicableForInstrumentation(Object bean)
      Parameters:
      bean - bean to instrument
      Returns:
      true if bean is applicable for instrumentation
    • instrument

      public Object instrument(Object bean, String beanName)
      Wraps an Executor bean in its trace representation.
      Parameters:
      bean - a bean (might be of Executor type
      beanName - name of the bean
      Returns:
      wrapped bean or just bean if not Executor or already instrumented