openzipkin / brave

Java distributed tracing implementation compatible with Zipkin backend services.
Apache License 2.0
2.36k stars 714 forks source link

how can I use brave to trace the appication with RocketMQ? #1043

Open ni-ze opened 4 years ago

ni-ze commented 4 years ago
 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);
codefromthecrypt commented 4 years ago

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

codefromthecrypt commented 4 years ago

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

JoeKerouac commented 1 year ago

@codefromthecrypt I plan to add rocketmq support in brave, is there anything I need to pay attention to?

codefromthecrypt commented 10 months ago

Is anyone still interested in this? If so, please 👍 this comment.