🐛 add bootstarter and fix endpoints bug (#12408)
* degist-concurrency-bugfix * stytle opt * fix i++ * revert demo * fix sonar * remove apache licence * add licence * add testcase&& fix notice * add notice * add notice * add notice * add notice * fix ci timeout * fix ci timeout * remove testcase because of timeout * remove testcase because of timeout * remove testcase because of timeout * fix ci * fix sonar * 🔥 remove metricsPort config * 🔥 remove metricsPath config * observer starter add actuator starter * 🐛 add bootstarter and fix endpoints bug --------- Co-authored-by: wxbty <wxb_101@163.com> Co-authored-by: x-shadow-man <1494445739@qq.com>
This commit is contained in:
parent
b1612b9269
commit
71ab429722
|
|
@ -34,6 +34,8 @@ public class DubboMetricsBinder implements ApplicationListener<ApplicationStarte
|
|||
public void onApplicationEvent(ApplicationStartedEvent applicationStartedEvent) {
|
||||
if (meterRegistry instanceof CompositeMeterRegistry) {
|
||||
MetricsGlobalRegistry.setCompositeRegistry((CompositeMeterRegistry) meterRegistry);
|
||||
}else{
|
||||
MetricsGlobalRegistry.getCompositeRegistry().add(meterRegistry);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,5 +36,10 @@
|
|||
<artifactId>dubbo-spring-boot-observability-autoconfigure</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.dubbo</groupId>
|
||||
<artifactId>dubbo-spring-boot-actuator</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue