在我的spring boot项目中,TraceId只在@SqsListener注解的方法中缺失。我已经使用spring-cloud-starter-sleuth进行日志记录和登录配置。
发布于 2021-08-09 15:24:21
你使用的是哪个侦探版本?他们从3.0版本中移除了对SQS的支持。https://github.com/spring-cloud/spring-cloud-sleuth/issues/1876。
此repo有助于实现将跟踪放到SQS消息中,但从消息中获取它们并将其注入到MDC中,您需要自己实现。
https://stackoverflow.com/questions/68522562
复制相似问题