@JMSListner中的Brave / Sleuth Traceid

时间:2020-03-17 01:57:07

标签: spring-boot spring-cloud-sleuth

我正在向Springboot应用程序中的嵌入式activemq发送一些消息。我有Sleuth / Brave进行分布式跟踪。

虽然在Producer方法中发送请求之前我看到tracerId。

2020-03-16 15:59:40.539-信息[test-framework-api,6e8c40901e5ea627,7c9ba94387317bea,true]-在发送前设置jms

从@JMSListener出队后,它只会释放traceId

2020-03-16 15:59:40.550-信息[test-framework-api ,,,]-----收到的ActiveMQ消息-----

如何将其保留在receiveMessage端?

以下是我正在使用的相关依赖项:

compile("org.springframework.boot:spring-boot-starter-activemq:2.2.1.RELEASE")
compile("org.apache.activemq:activemq-broker:5.15.10")
compile("org.springframework.cloud:spring-cloud-starter-zipkin")

Sample Code

0 个答案:

没有答案