-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Is it possible to collect producer batch request latency and error information? #130
Comments
I could potentially add latency to So in summary:
I'm planning to spend some time this weekend on a recent batch of feature requests. |
💯 cool, thanks. |
Looking at this further, I think it makes sense to keep in Do you want per topic / per partition latency breakdown, or is per-request latency good? Per-record latency can currently be gleaned from the timestamp field within a record (set once buffered) and the time once the promise is called. How would per-batch latency be used / beneficial in comparison to per-request and potentially per-record? |
Closing for the moment (to help me track some stuff), but this can be reopened if we decide more latency should be added somewhere else. |
Agree that adding latency info to Minor suggestion: it would be great to have all related information well commented on in a single place somewhere. |
Where do you think it could be documented? doc/hooks.md? doc/monitoring.md? |
They both look good to me as long as it is reachable from a related section of the https://github.com/twmb/franz-go page. |
Sorry about the delay -- v1.4 should be this week. I think there's one more thing to add to it. I'll reopen this for now so that it can be properly closed when v1.4 is released (now that I have a v1.4 tracking issue). |
To be merged into master soon. |
Merged! |
The best I could get so far is
HookProduceBatchWritten
andHookBrokerWrite
. But they are not perfect:HookBrokerWrite
: impossible to distinguish if it's a produce request (bytesWritten
is a strong signal but not always).HookProduceBatchWritten
: lack of latency and error information.Maybe I'm missing something in the docs. But it would be great to have request latency and error metrics for producer monitoring.
The text was updated successfully, but these errors were encountered: