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

集成gateway。traceId线程问题 #14

Open
Jaxaxx opened this issue May 21, 2022 · 4 comments
Open

集成gateway。traceId线程问题 #14

Jaxaxx opened this issue May 21, 2022 · 4 comments

Comments

@Jaxaxx
Copy link

Jaxaxx commented May 21, 2022

gateway-log

下游服务log

开发者您好:
根据图示,目前我开发版本为:springcloud2022.0.1 springboot2.6.6 tlog-all 1.4.1

项目启动,通过gateway首次请求接口,gateway中的traceId不会打印出来,通过webflux 包下的代码看到是上下文对象没有实例化,推断为拦截器加载顺序的问题。下游web服务之间的传递没有问题。
最严重的问题是gateway的上下文对象会有线程问题,如图所示。请求了7次接口,前六次gateway没有打印traceId,第七次打印出来的traceId是第一次下游接口已经转发过的traceId

@Jaxaxx
Copy link
Author

Jaxaxx commented Jun 22, 2022

请问是否可以回复,是我使用方式的问题还是?

@maybe12331
Copy link

我也遇到同样的问题,期待解答

@maybe12331
Copy link

请问是否可以回复,是我使用方式的问题还是?

请问你解决了吗?

@Jaxaxx
Copy link
Author

Jaxaxx commented Jun 21, 2023

没解决 我在gitee提交的同样的问题也没有回复

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