-
Notifications
You must be signed in to change notification settings - Fork 717
New issue
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
Adds RocketMQ plugin #1449
Adds RocketMQ plugin #1449
Conversation
74abe15
to
8cbd9dc
Compare
@codefromthecrypt Could you kindly review this when you have some time? Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this over @CodePrometheus. I think it needs to be in brave-bom and also added to beans to complete. Consider this approved when comments addressed. @reta if you don't mind covering next review pass.
@BenchmarkMode(Mode.SampleTime) | ||
@OutputTimeUnit(TimeUnit.MICROSECONDS) | ||
@State(Scope.Thread) | ||
public class RocketMQProducerBenchmarks { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add an example of this run in the PR desc in triple backtick
@@ -0,0 +1,98 @@ | |||
# brave-instrumentation-rocketmq-client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
look at the other README examples, I don't recall if we are pasting everything including imports, or just the pertinant parts. I think the latter as it keeps the thing more readable and also we don't compile check the markdown. When reviewing, see if you may have any other ideas to improve the README, but nothing besides this comes to mind.
*/ | ||
final class TracingMessageListenerConcurrently extends AbstractMessageListener implements MessageListenerConcurrently { | ||
final MessageListenerConcurrently messageListenerConcurrently; | ||
final BiFunction<ConsumeConcurrentlyStatus, ConsumeConcurrentlyStatus, Boolean> CONCURRENT_CHECK = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume rocketmq is minimum java 8 so this will be fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, rocketmq requires at least Java8.
instrumentation/rocketmq-client/src/main/java/brave/rocketmq/client/TracingSendMessage.java
Outdated
Show resolved
Hide resolved
instrumentation/rocketmq-client/src/main/java/brave/rocketmq/client/TracingSendMessage.java
Outdated
Show resolved
Hide resolved
instrumentation/rocketmq-client/src/main/java/brave/rocketmq/client/RocketMQTracing.java
Outdated
Show resolved
Hide resolved
static final int BROKER_PORT = 10911; | ||
|
||
RocketMQContainer() { | ||
super(DockerImageName.parse("apache/rocketmq:5.3.1")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked and this is multi-arch now. good! https://hub.docker.com/r/apache/rocketmq/tags
instrumentation/rocketmq-client/src/test/java/brave/rocketmq/client/ITRocketMQTracing.java
Outdated
Show resolved
Hide resolved
instrumentation/rocketmq-client/src/test/java/brave/rocketmq/client/RocketMQContainer.java
Outdated
Show resolved
Hide resolved
Thanks a lot @CodePrometheus , a few very minor comments from me, solid work! |
@codefromthecrypt @reta Thanks for your time! I made a round of fixes for the current issue. Benchmark results on my local are as follows:
|
nice work! |
Resolves #1043