-
Notifications
You must be signed in to change notification settings - Fork 139
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
Producer and consumer diagnostics #1039
Comments
See #1048 |
@svroonland We do not actually have diagnostics for producers yet and as far as I know there is no issue requesting those. Should we keep this one open? |
Also we have consumer metrics since v2.7.3 |
The consumer already has a diagnostics API which can you use for most of these use cases. Indeed, tracing is covered by #1345 and #1356. In #1345 we create a mechanism to wrap producers with the If we complete and merge #1356, I am not sure if we still want to merge the annotation part #1345 as well. Its a lot of code for a small use case. Indeed, more metrics can be had from the Java consumer / producer. We don't expose those via zio-metrics, but a bridge could be added (I'd say: PRs welcome 😉). IMHO for logging you are better of with putting this directly in the consumer/producer and not as a wrapper. Again: too much code for a small use case. The API proposed in this issue is nice, but it looks it will result in a lot of non-composable code in the library. Perhaps we are better off with 'producer diagnostics', something similar to the consumer diagnostics. In other words: lots of options and feedback is greatly appreciated. |
@erikvanoosten I'm not sure what to do with this issue. Tracing, logging and metrics are probably covered somewhat by your work on open telemetry / open tracing. Producer already exposes some metrics via the underlying apache producer. What do you think? |
I would love something like consumer diagnostics for the producer |
I'd like to create middleware for producers and consumers, to do things like distributed tracing, logging, metrics and so on.
Here is an example of instrumenting a producer and consumer with a variation of trace4cats
As you can see, its pretty clunky: I have to backfill all the aliases. It would be nice to be able to do something like
The text was updated successfully, but these errors were encountered: