-
Notifications
You must be signed in to change notification settings - Fork 179
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
Use OpenTelemetry Instrumenter #1678
Conversation
radcortez
commented
Mar 21, 2022
•
edited
Loading
edited
- Fixes Refactor OTel integration to use the Instrumenter API #1572
This is not totally done yet, but I wanted to get some feedback before moving forward. I've tried to only replace the current existing code with the OTel APIs. It seems to work for Kafka and AMQP, but the RabbitMQ one is lacking tests, so no way to verify them at the moment (I'll need to add them). What I don't like is the Tracing code is all over the place. And each connector is handling it in different ways. I'm wondering if we should introduce a SPI (like Vert.x did for tracing stuff) and make this well defined (it can also be used for gathering Metrics). On a separate topic, I was wondering if we could inject the TracingMetadata automatically, so the user doesn't have to do that. We may require to adjust the @cescoffier @ozangunalp any thoughts? |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1678 +/- ##
============================================
+ Coverage 77.25% 77.56% +0.30%
- Complexity 3466 3472 +6
============================================
Files 294 298 +4
Lines 11652 11658 +6
Branches 1487 1479 -8
============================================
+ Hits 9002 9042 +40
+ Misses 1954 1925 -29
+ Partials 696 691 -5
|
...ctive-messaging-kafka/src/main/java/io/smallrye/reactive/messaging/kafka/impl/KafkaSink.java
Outdated
Show resolved
Hide resolved
cf6cd07
to
2847cb8
Compare
@radcortez I've not finished reviewing the code but |
It seems to be the same issue reported in #1268. From what I can tell, the 10 messages are produced correctly, but only 9 reach the consumer. I don't think this is related to any of our code, but I also find it strange if the broker is not able to handle this properly. Do you have any ideas? |
@radcortez I looked at the changes again. I noticed that we are doing the same sequence of operations on the instrumenter. I separated that code into a common module which also imports the otel apis. Here is my test PR : ozangunalp#12 Along the way I think I fixed that flaky test in AMQP connector. Tell me what do you think. |
Yes, my plan was to refactor this later. Thanks for doing it :)
+1
The
+1 Good to go! |
53be093
to
36ad496
Compare
877bb69
to
d28a67f
Compare
d28a67f
to
11f89b3
Compare
@cescoffier I am willing to take this in for 3.23. Could you take a look ? |
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.
LGTM!