You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "ldcsaa (via GitHub)" <gi...@apache.org> on 2025/03/16 15:44:00 UTC
Re: [I] [Bug] Dubbo 3.3.3 Call-Chain of Skywalking not correct [dubbo]
ldcsaa commented on issue #15096:
URL: https://github.com/apache/dubbo/issues/15096#issuecomment-2727507875
> > > Would you like to fix it?
> >
> >
> > I don't hava time ...
>
> How do you collect trace from Java Process? Please show me the configuration thanks.
```
@Bean
@Primary
@ConditionalOnMissingBean
ObservationRegistry observationRegistry(List<MeterObservationHandler<?>> handlers, ObservationPredicate predicate)
{
ObservationRegistry registry = ObservationRegistry.create();
registry.observationConfig()
.observationHandler(
new ObservationHandler.FirstMatchingCompositeObservationHandler(
new SkywalkingMeterHandler(new SkywalkingMeterRegistry())))
.observationHandler(
new ObservationHandler.FirstMatchingCompositeObservationHandler(handlers))
.observationHandler(
new ObservationHandler.FirstMatchingCompositeObservationHandler(
new SkywalkingSenderTracingHandler(),
new SkywalkingReceiverTracingHandler(),
new SkywalkingDefaultTracingHandler()))
.observationPredicate(predicate);
return registry;
}
```
```
@AutoConfiguration
@ConditionalOnClass({TraceContext.class, SoaDubboConfig.class})
public class SoaSkyWalkingDubboConfig
{
@Bean
ApplicationModel applicationModel(ObservationRegistry observationRegistry)
{
ApplicationModel applicationModel = ApplicationModel.defaultModel();
applicationModel.getBeanFactory().registerBean(observationRegistry);
return applicationModel;
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org