-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
MetricLogger shouldn't throw exception #757
Conversation
Most likely AnyCodec has an issue if this part is throwing an exception |
@takezoe So we also need to wrap TypeMetricLogger.emit |
I see. I'll update to wrap |
3f26560
to
15afbcc
Compare
Codecov Report
@@ Coverage Diff @@
## master #757 +/- ##
==========================================
+ Coverage 83.31% 83.32% +<.01%
==========================================
Files 217 217
Lines 8633 8634 +1
Branches 608 606 -2
==========================================
+ Hits 7193 7194 +1
Misses 1440 1440
Continue to review full report at Codecov.
|
It would be great if there is an way to show warning messages at least once for the same type of errors. For example, while debugging we usually need to know the cause of errors. |
Second thought:
|
Certainly, MetricLogger is not for only logging but also for sending system metrics. If sending metrics is the responsibility of the client, an exception should be handled in the client-side. OK, I withdraw this pull request and implement error handling in the client-side. |
Fluency throws an exception when the buffer is full and fail to flush, but it shouldn't break the host logic even if such unknown errors occur inside of it.