Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

classNotFound SofaTracerLoadBalancedFeignClient #498

Closed
WarriorFromLongAgo opened this issue Sep 13, 2022 · 1 comment
Closed

classNotFound SofaTracerLoadBalancedFeignClient #498

WarriorFromLongAgo opened this issue Sep 13, 2022 · 1 comment

Comments

@WarriorFromLongAgo
Copy link

Your question

从spring-cloud 2020.0.0 开始,spring-cloud-openfeign-core 中就没有ribbon了。

我们目前是 Hoxton.SR12,仍然还是有ribbon的版本,如果我升级2020.0.0及其以上,那么启动的时候

SofaTracerLoadBalancedFeignClient这个类就会报错,请问有计划支持嘛,

Your scenes

我们目前的版本依赖关系如下
<spring-boot.version>2.3.12.RELEASE</spring-boot.version>

将spring-cloud升级到 2020.0.0以上sofa-trace就会有问题
<spring-cloud.version>Hoxton.SR12</spring-cloud.version>
<trace-sofa.version>3.11.1</trace-sofa.version>
这个类重度依赖了 spring-cloud-openfeign-coreribbon

sofa-tracer-plugins
sofa-tracer-spring-cloud-plugin
SofaTracerLoadBalancedFeignClient

import feign.Client;
import org.springframework.cloud.netflix.ribbon.SpringClientFactory;
import org.springframework.cloud.openfeign.ribbon.CachingSpringLoadBalancerFactory;
import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;

/**
 * @author: guolei.sgl (guolei.sgl@antfin.com) 2019/3/13 5:53 PM
 * @since:
 **/
public class SofaTracerLoadBalancedFeignClient extends LoadBalancerFeignClient {
@glmapper
Copy link
Contributor

glmapper commented Dec 9, 2022

@WarriorFromLongAgo 目前没有计划,你可以参考 https://www.sofastack.tech/blog/sofa-tracer-event-tracing-deep-dive/ 这篇文章自己扩展一个插件来支持此功能

@glmapper glmapper closed this as completed Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants