-
Notifications
You must be signed in to change notification settings - Fork 58
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
Extend MetricsFacade with createSimpleTimer() factory #265
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #265 +/- ##
============================================
+ Coverage 68.21% 68.46% +0.25%
- Complexity 1128 1149 +21
============================================
Files 319 319
Lines 12846 12930 +84
Branches 1291 1296 +5
============================================
+ Hits 8763 8853 +90
+ Misses 3552 3545 -7
- Partials 531 532 +1
*This pull request uses carry forward flags. Click here to find out more.
|
jvm-libs/linea/core/metrics/src/main/kotlin/net/consensys/linea/metrics/MetricsFacade.kt
Outdated
Show resolved
Hide resolved
jvm-libs/linea/core/metrics/src/main/kotlin/net/consensys/linea/metrics/MetricsFacade.kt
Show resolved
Hide resolved
...eneric/json-rpc/src/main/kotlin/net/consensys/linea/jsonrpc/client/VertxHttpJsonRpcClient.kt
Outdated
Show resolved
Hide resolved
...micrometer/src/main/kotlin/net/consensys/linea/metrics/micrometer/MicrometerMetricsFacade.kt
Outdated
Show resolved
Hide resolved
coordinator/app/src/main/kotlin/net/consensys/zkevm/coordinator/app/CoordinatorApp.kt
Show resolved
Hide resolved
...inator/core/src/main/kotlin/net/consensys/zkevm/ethereum/coordination/blob/BlobCompressor.kt
Outdated
Show resolved
Hide resolved
...inator/core/src/main/kotlin/net/consensys/zkevm/ethereum/coordination/blob/BlobCompressor.kt
Outdated
Show resolved
Hide resolved
...inator/core/src/main/kotlin/net/consensys/zkevm/ethereum/coordination/blob/BlobCompressor.kt
Outdated
Show resolved
Hide resolved
...inator/core/src/main/kotlin/net/consensys/zkevm/ethereum/coordination/blob/BlobCompressor.kt
Outdated
Show resolved
Hide resolved
...ic/json-rpc/src/test/kotlin/net/consensys/linea/jsonrpc/client/VertxHttpJsonRpcClientTest.kt
Outdated
Show resolved
Hide resolved
e8c9bdc
to
69ad44d
Compare
71d80e0
to
9858d3d
Compare
@@ -50,24 +46,18 @@ private data class RequestContext( | |||
*/ | |||
class JsonRpcMessageProcessor( | |||
private val requestsHandler: JsonRpcRequestHandler, | |||
private val meterRegistry: MeterRegistry, | |||
private val metricsFacade: MetricsFacade, |
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.
From Bradley's previous changes, JsonRpcMessageProcessor
needed to be passed in both metricsFacade
and metricsRegistry
, and here I further reduced it to just pass in metricsFacade
and added createDynamicTagTimer
in MetricsFacade
class
91f7fe6
to
09c9a14
Compare
09c9a14
to
4f727a4
Compare
4f727a4
to
7ee6316
Compare
I don't have bandwidth to review this pr atm. But please don't merge for now as is believe it will introduce breaking changes to the metrics. |
7ee6316
to
63ca9c5
Compare
46a25f7
to
3039323
Compare
@jpnovais the changes here should have taken care of not introducing breaking changes to existing metrics |
@jonesho I still see a lot of diff changes in the JSON-RPC area, It's hard by looking at the code to tell if there are breaking changes. Can you please run coordinator and share the content of |
|
I also attached the "before" and "after" metrics from Coordinator metrics before the changes: Coordinator metrics after the changes: Transaction-exclusion-api metrics before the changes: Transaction-exclusion-api metrics after the changes: |
6335832
to
21a83fd
Compare
.description( | ||
"Processing of JSON-RPC message: Deserialization + Business Logic + Serialization" | ||
) | ||
val timerSample = Timer.start(Clock.SYSTEM) |
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.
The time sample was taking the time here right at method beginning. Now it's move elsewhere. That will influence time measurements, no?
If read the code correctly, for instance now the time doing decodeMessage(requestJsonStr)
This PR implements issue(s) #2963
Adds:
Checklist