We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
不同job任务使用了同一个traceId,同一个任务多次执行也使用了同一个traceId。可查看附件
new 5.txt
The text was updated successfully, but these errors were encountered:
使用的tlog版本是1.3.3
Sorry, something went wrong.
因为xxl-job使用线程池调度,所以会有重复问题。我的解决方案是用spring切面处理。
@Component @Aspect public class TLogXxlJobHandlerAspect { private TLogRPCHandler tLogRPCHandler = new TLogRPCHandler(); @Pointcut("@annotation(com.xxl.job.core.handler.annotation.XxlJob)") public void xxlJobHandlerAspect() {} @Before("xxlJobHandlerAspect()") public void doBefore() { tLogRPCHandler.processProviderSide(new TLogLabelBean()); } @After("xxlJobHandlerAspect()") public void doAfter() { tLogRPCHandler.cleanThreadLocal(); } }
No branches or pull requests
不同job任务使用了同一个traceId,同一个任务多次执行也使用了同一个traceId。可查看附件

new 5.txt
The text was updated successfully, but these errors were encountered: