You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2022/08/14 06:50:43 UTC
[GitHub] [skywalking] BigXin0109 opened a new issue, #9470: [Bug]
BigXin0109 opened a new issue, #9470:
URL: https://github.com/apache/skywalking/issues/9470
### 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
use xxl-job version: 2.3.0 , plugin: apm-xxl-job-2.x-plugin not support.
### What you expected to happen
logback tid is N/A
2022-08-14 14:48:04.249 INFO TID:N/A Thread-82 c.x.j.e.s.jobhandler.SampleXxlJob: demoJobHandler beat at:0
2022-08-14 14:48:06.253 INFO TID:N/A Thread-82 c.x.j.e.s.jobhandler.SampleXxlJob: demoJobHandler beat at:1
2022-08-14 14:48:08.257 INFO TID:N/A Thread-82 c.x.j.e.s.jobhandler.SampleXxlJob: demoJobHandler beat at:2
2022-08-14 14:48:10.261 INFO TID:N/A Thread-82 c.x.j.e.s.jobhandler.SampleXxlJob: demoJobHandler beat at:3
2022-08-14 14:48:12.266 INFO TID:N/A Thread-82 c.x.j.e.s.jobhandler.SampleXxlJob: demoJobHandler beat at:4
### How to reproduce
demo: https://github.com/xuxueli/xxl-job/tree/2.3.0/xxl-job-executor-samples/xxl-job-executor-sample-springboot
add maven :
```
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>apm-toolkit-logback-1.x</artifactId>
<version>8.11.0</version>
</dependency>
```
logback.xml:
```
<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
<layout class="org.apache.skywalking.apm.toolkit.log.logback.v1.x.TraceIdPatternLogbackLayout">
<!-- 日志格式中添加 %tid 即可输出 trace id -->
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level %tid %t %logger{36}: %msg%n</pattern>
</layout>
</encoder>
```
demo: com.xxl.job.executor.service.jobhandler.SampleXxlJob#demoJobHandler
```
/**
* 1、简单任务示例(Bean模式)
*/
@XxlJob("demoJobHandler")
public void demoJobHandler() throws Exception {
XxlJobHelper.log("XXL-JOB, Hello World.");
for (int i = 0; i < 5; i++) {
XxlJobHelper.log("beat at:" + i);
logger.info("demoJobHandler beat at:{}", i);
TimeUnit.SECONDS.sleep(2);
}
// default success
}
```
### Anything else
_No response_
### Are you willing to submit PR?
- [X] 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] wu-sheng closed issue #9470: [Bug] xxl-job 2.3.x version not support
Posted by GitBox <gi...@apache.org>.
wu-sheng closed issue #9470: [Bug] xxl-job 2.3.x version not support
URL: https://github.com/apache/skywalking/issues/9470
--
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] leon756 commented on issue #9470: [Bug] xxl-job 2.3.x version not support
Posted by "leon756 (via GitHub)" <gi...@apache.org>.
leon756 commented on issue #9470:
URL: https://github.com/apache/skywalking/issues/9470#issuecomment-1491232078
@BigXin0109 This may be helpful for you:
https://github.com/leon756/skywalking/tree/v8.7.0-xxl-job-2.3-plugin
--
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 #9470: [Bug] xxl-job 2.3.x version not support
Posted by GitBox <gi...@apache.org>.
wu-sheng commented on issue #9470:
URL: https://github.com/apache/skywalking/issues/9470#issuecomment-1214298429
Version not supported is not a bug. If you want to add more, a pull request is welcome.
--
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