-
Notifications
You must be signed in to change notification settings - Fork 228
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
Documentation Feedback on Reactor Kafka's Observation API #369
Comments
@almogtavor, first you can try replacing
Beside this using libs on your sample project look slightly outdated. Not sure if this still fits together... |
upvoting this |
@janchristian-haddorp thank you very much. I didn't know about the |
See an Observation support in the upcoming release: https://github.com/reactor/reactor-kafka/blob/main/src/docs/asciidoc/api-guide.adoc#micrometer-observation. The rest of questions about parallel scheduler and buffers are out of this project scope. The Otel API is definitely out of our reach at all. Not sure what else you would like to see from the scope of this project... |
@artembilan what is the usage of "user.receiver" inside KafkaRecordReceiverContext? (https://github.com/reactor/reactor-kafka/blob/main/src/docs/asciidoc/api-guide.adoc#micrometer-observation) |
See So, that is a |
Documentation Issue
This PR https://github.com/reactor/reactor-kafka/pull/325/files#diff-a43be6da00bb7683292fd18443d388a44e23a6354dee611a27d07884509e101a added the first observation api & reactor kafka documentation which is great. But in general there is no Observation API & reactor (and especially no Observation API & reactor kafka) documentation, which makes the development process very confusing.
I've created this repo to test tracing with an application similar to mine: https://github.com/almogtavor/spring-boot-reactor-kafka-example. The thing is that I just can't get this to work with the observation API at all. It took me too much time to learn about the
.tap
operator, and regarding theKafkaReceiverObservation
& similar classes, I still don't understand how they shall be used. Is there an example of the ideal usage of the observation API for tracing in a reactor kafka-based application that reads data from one topic and sends it to another?Improvement Suggestion
The documentation that the new PR will add is awesome, but I it's essential to provide specific guidelines addressing common scenarios:
.publishOn(Schedulers.parallel())
. This publisher didn't work well with the automatic instrumentation that Otel did with the javaagent, therefore I started to migrate to the manual instrumentation..buffer
operator. In my case I want the traces of the batch operations to have links from and to every original trace ID of the messages that were included in the buffer. (If it's relevant - my use case is buffering 50 messages and performing a Mongo write after buffering. I want to be able to create 51 spans - 1 for the whole buffer and 50 for each message, and then link the buffer's span to the messages').Span
object Understanding reactor + reactor-kafka instrumentations open-telemetry/opentelemetry-java-instrumentation#9771. A simple example of a reactor kafka application that puts a key and gets it at the end of the flux could help with this.Additional context
While the ongoing efforts to improve documentation are appreciated, there's a need for clearer, more structured, and example-driven documentation to facilitate a smoother development experience.
The text was updated successfully, but these errors were encountered: