-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Follow ups for micrometer metrics PFP-1613 #14694
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
Conversation
Bundle ReportBundle size has no change ✅ |
f01b4d8
to
575280b
Compare
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
575280b
to
29b8c69
Compare
.timer(MetricUtils.DATAHUB_REQUEST_HOOK_QUEUE_TIME, "hook", hookName) | ||
.record(Duration.ofMillis(queueTimeMs)); | ||
}); | ||
.timer(MetricUtils.DATAHUB_REQUEST_HOOK_QUEUE_TIME, "hook", hookName) |
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.
We should move away from invoking these registry APIs on the hot path. They result in warning logs and the implementation has a synchronization bug in this method
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.
(I'll write that best-practices guide for micrometer / prometheus)
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.
FYI, best-practices here in this PR: #14711
@@ -504,89 +499,13 @@ public void testMicrometerMetricsWithFailedTransformation() { | |||
verify(elasticsearchConnector, never()).feedElasticEvent(any()); | |||
} | |||
|
|||
@Test |
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.
Most of these tests look like they were AI generated. A lot of them verify trivial functionality or verify too strictly. IMO, they have very little value in terms of their ability to catch regressions, and make refactorings such as this PR quite a bit harder.
29b8c69
to
bbcc495
Compare
c28fcdf
to
a545a2f
Compare
a545a2f
to
733707b
Compare
733707b
to
eca800e
Compare
🔴 Meticulous spotted visual differences in 20 of 1380 screens tested: view and approve differences detected. Meticulous evaluated ~8 hours of user flows against your PR. Last updated for commit eca800e. This comment will update as new commits are pushed. |
- Make MetricUtils.registry non-nullable with default no-op implementation - This allows us to remove boilerplate for handling the null case - Rename request context metric names to follow convention
eca800e
to
7e6d5be
Compare
No description provided.