You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Configuration
public class ObservationConfiguration {
@Bean
ObservationRegistry observationRegistry() {
// Here we create the Observation Registry with attached handlers
ObservationRegistry registry = ObservationRegistry.create();
// Here we add a meter handler
registry.observationConfig()
.observationHandler(new ObservationHandler.FirstMatchingCompositeObservationHandler(
(ObservationHandler<? extends Observation.Context>) new SkywalkingMeterHandler(new SkywalkingMeterRegistry())
));
return registry;
}
@Bean
ApplicationModel applicationModel(ObservationRegistry observationRegistry) {
ApplicationModel applicationModel = ApplicationModel.defaultModel();
observationRegistry.observationConfig()
.observationHandler(new ObservationHandler.FirstMatchingCompositeObservationHandler(
new SkywalkingSenderTracingHandler(), new SkywalkingReceiverTracingHandler(),
new SkywalkingDefaultTracingHandler()
));
applicationModel.getBeanFactory().registerBean(observationRegistry);
return applicationModel;
}
}
会找不到ObservationRegistry observationRegistry这个bean,然后我声明了一个之后服务能运行了,但是也采集不到dubbo的信息
我的代码:
pom
The text was updated successfully, but these errors were encountered: