You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by "MorganMaxg (via GitHub)" <gi...@apache.org> on 2023/03/08 12:38:57 UTC
[GitHub] [skywalking] MorganMaxg opened a new issue, #10509: [Bug] Spring cloud gateway project logback cannot print TraceID
MorganMaxg opened a new issue, #10509:
URL: https://github.com/apache/skywalking/issues/10509
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/skywalking/issues?q=is%3Aissue) and found no similar issues.
### Apache SkyWalking Component
Java Agent (apache/skywalking-java)
### What happened
Cannot print TraceId on spring cloud gateway with logback.
### What you expected to happen
expected a real value of traceid, not `TID:N/A`
### How to reproduce
Follow these steps:
1. Download my code from project [springcloudgatewaylogbacktraceiderror](https://github.com/MorganMaxg/springcloudgatewaylogbacktraceiderror.git)
2. Build project with `mvn clean package`
3. start project. ``
4. testing with a url such as `curl 127.0.0.1:8081/demo/test`, log will print '[TID:N/A] [reactor-http-nio-2] INFO c.e.m.filter.TraceIdGlobalFilter -hello world, N/A'
### Anything else
How can i print the traceId in GlobalFilter.
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
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@skywalking.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] MorganMaxg commented on issue #10509: [Bug] Spring cloud gateway project logback cannot print TraceID
Posted by "MorganMaxg (via GitHub)" <gi...@apache.org>.
MorganMaxg commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1461370804
I solve the problem by this way.
1. `cp bootstrap-plugins/apm-jdk-threading-plugin-8.14.0.jar plugins/`.
2. add add options to jvm `-Dskywalking.plugin.jdkthreading.threading_class_prefixes=io.netty.util.concurrent`
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] MorganMaxg commented on issue #10509: [Bug] Spring cloud gateway project logback cannot print TraceID
Posted by "MorganMaxg (via GitHub)" <gi...@apache.org>.
MorganMaxg commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1460195805
well, what's the final conclusion. I find nothing in #5906
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Spring cloud gateway project logback cannot print TraceID [skywalking]
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1752263313
Why ping me? The plugin is not written by me. I don't know anything about agent running in Spring cloud.
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng closed issue #10509: [Bug] Spring cloud gateway project logback cannot print TraceID
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng closed issue #10509: [Bug] Spring cloud gateway project logback cannot print TraceID
URL: https://github.com/apache/skywalking/issues/10509
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Spring cloud gateway project logback cannot print TraceID [skywalking]
Posted by "BothSavage (via GitHub)" <gi...@apache.org>.
BothSavage commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1902224810
> > 这已经讨论过很多次了。请先搜索再打开新的。
>
> 如何解决这个问题?
https://bothsavage.github.io/article/240121-skywaking
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [skywalking] wu-sheng commented on issue #10509: [Bug] Spring cloud gateway project logback cannot print TraceID
Posted by "wu-sheng (via GitHub)" <gi...@apache.org>.
wu-sheng commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1460132633
This was discussed many many times. Please search before opening a new one.
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Spring cloud gateway project logback cannot print TraceID [skywalking]
Posted by "hnsongbiao (via GitHub)" <gi...@apache.org>.
hnsongbiao commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1752210477
@wu-sheng 这个问题到底要怎么解决啊,都看到说问题是重复的,没看到在spring cloud gateway里记录traceId的方法,请提供解决办法的文档地址,
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Spring cloud gateway project logback cannot print TraceID [skywalking]
Posted by "hnsongbiao (via GitHub)" <gi...@apache.org>.
hnsongbiao commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1752212928
> This was discussed many many times. Please search before opening a new one.
how to resolve this problem?
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Spring cloud gateway project logback cannot print TraceID [skywalking]
Posted by "BothSavage (via GitHub)" <gi...@apache.org>.
BothSavage commented on issue #10509:
URL: https://github.com/apache/skywalking/issues/10509#issuecomment-1902224840
> 我通过这种方式解决问题。使用 Tomcat 方式运行 spring-cloud-gateway,而不是 netty。
https://bothsavage.github.io/article/240121-skywaking
--
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@skywalking.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org