-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
[ISSUE #9164] Add producer stats manager #9165
base: develop
Are you sure you want to change the base?
Conversation
Hi, I think it is enough to monitor the time taken to call the sending API directly in the application. There is no need to integrate it into the sending client. |
79fe376
to
9539b04
Compare
9539b04
to
2e70aaf
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #9165 +/- ##
=============================================
- Coverage 48.04% 48.01% -0.03%
- Complexity 12064 12084 +20
=============================================
Files 1320 1322 +2
Lines 92824 93080 +256
Branches 11897 11931 +34
=============================================
+ Hits 44596 44693 +97
- Misses 42734 42849 +115
- Partials 5494 5538 +44 ☔ View full report in Codecov by Sentry. |
private final StatsItemSet topicSendFailedTPS; | ||
private final StatsItemSet topicSendRT; | ||
|
||
public ProducerStatsManager(final ScheduledExecutorService scheduledExecutorService) { |
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.
Maybe you should add some unit tests for this feature
Which Issue(s) This PR Fixes
Fixes #9164
Brief Description
Add a producer stats manager to the 4.x Java client to periodically print produce stats in the client logs.
How Did You Test This Change?
Running 4.x java client's producer benchmark and checking for the logs.