Class DubboObservationAutoConfiguration

java.lang.Object
org.apache.dubbo.spring.boot.autoconfigure.observability.DubboObservationAutoConfiguration
All Implemented Interfaces:
EventListener, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationListener<DubboConfigInitEvent>, org.springframework.core.Ordered

@ConditionalOnProperty(prefix="dubbo", name="enabled", matchIfMissing=true) @AutoConfiguration(after=DubboMicrometerTracingAutoConfiguration.class, afterName="org.springframework.boot.actuate.autoconfigure.observation.ObservationAutoConfiguration") @ConditionalOnDubboTracingEnable @ConditionalOnClass(name={"io.micrometer.observation.Observation","io.micrometer.tracing.Tracer"}) public class DubboObservationAutoConfiguration extends Object implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.ApplicationListener<DubboConfigInitEvent>, org.springframework.core.Ordered
Register observationRegistry to ApplicationModel. Create observationRegistry when you are using Boot invalid input: '<'3.0 or you are not using spring-boot-starter-actuator
  • Constructor Details

    • DubboObservationAutoConfiguration

      public DubboObservationAutoConfiguration(ApplicationModel applicationModel)
  • Method Details

    • dubboObservationRegistryPostProcessor

      @Bean @ConditionalOnMissingBean(type="org.springframework.boot.actuate.autoconfigure.observation.ObservationRegistryPostProcessor") @ConditionalOnClass(name="io.micrometer.observation.ObservationHandler") public ObservationRegistryPostProcessor dubboObservationRegistryPostProcessor(org.springframework.beans.factory.ObjectProvider<org.apache.dubbo.spring.boot.autoconfigure.observability.ObservationHandlerGrouping> observationHandlerGrouping, org.springframework.beans.factory.ObjectProvider<io.micrometer.observation.ObservationHandler<?>> observationHandlers)
    • setBeanFactory

      public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) throws org.springframework.beans.BeansException
      Specified by:
      setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware
      Throws:
      org.springframework.beans.BeansException
    • onApplicationEvent

      public void onApplicationEvent(DubboConfigInitEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<DubboConfigInitEvent>
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered