brave
brave copied to clipboard
how can I use brave to trace the appication with RocketMQ?
this is my pom file:
<!--RocketMQ-->
<dependency>
<groupId>org.apache.rocketmq</groupId>
<artifactId>rocketmq-client</artifactId>
<version>4.4.0</version>
</dependency>
and I use like this:
@Autowired
private DefaultMQProducer defaultMQProducer;
...
defaultMQProducer.send(message);
unless rocketmq has a JMS driver, this would be a new instrumentation. We'd need a few others interested and a volunteer to write it
https://github.com/apache/rocketmq/wiki/RIP-6-Message-Trace has some summary information about how RocketMQ thinks about tracing.
fields they record are listed here https://github.com/apache/rocketmq/blob/master/client/src/main/java/org/apache/rocketmq/client/trace/TraceBean.java
likely we minimally need topic messageKey, messageId properties to link to their trace data
cc also @literatureandyou in case you were looking for rocket here
@codefromthecrypt I plan to add rocketmq support in brave, is there anything I need to pay attention to?
Is anyone still interested in this? If so, please 👍 this comment.