-
Notifications
You must be signed in to change notification settings - Fork 0
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
FDP-94: Add monitoring and small fixes #9
Conversation
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
a0c7999
to
f6ffcc0
Compare
Signed-off-by: Jasper Kamerling <[email protected]>
f6ffcc0
to
ebb8f99
Compare
.register(registry) | ||
.record(duration) | ||
} | ||
} |
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.
new line
Signed-off-by: Jasper Kamerling <[email protected]>
17b5deb
ebb8f99
to
17b5deb
Compare
application/src/main/kotlin/org/gxf/soapbridge/monitoring/MonitoringService.kt
Outdated
Show resolved
Hide resolved
application/src/main/kotlin/org/gxf/soapbridge/monitoring/MonitoringService.kt
Show resolved
Hide resolved
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.
Is dit voldoende om ook bijv. fail-rates uit te halen? Of moeten we wat counters toeveoegen?
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.
Is het überhaupt nodig om fouten te timen? Kunnen we niet gerichter timeouts, technische exceptions etc. 'counten'?
createErrorResponse(response); | ||
connectionCacheService.removeConnection(connectionId); | ||
return; | ||
} | ||
} catch (final InterruptedException e) { | ||
LOGGER.error("Error while waiting for response", e); | ||
monitoringService.recordConnectionTime(startTime, request.getContextPath(), false); |
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.
Mogelijk is het nuttiger om errors te tellen. Eventueel naast het meten van de duratie.
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
…be found Signed-off-by: Jasper Kamerling <[email protected]>
Signed-off-by: Jasper Kamerling <[email protected]>
78574e7
to
72682d2
Compare
Signed-off-by: Jasper Kamerling <[email protected]>
|
||
// After adding an entry it should be 1 | ||
cacheMap["key"] = "value" | ||
assertEquals(1.0, gauge.value()) |
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.
Actual first param, Expected as second param.
|
||
// After reassigning the key it should stay at 1 | ||
cacheMap["key"] = "new-value" | ||
assertEquals(1.0, gauge.value()) |
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.
Actual first param, Expected as second param.
|
||
// After adding a second key it should be 2 | ||
cacheMap["new-key"] = "new-value" | ||
assertEquals(2.0, gauge.value()) |
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.
Actual first param, Expected as second param.
|
||
// Check if the meter exists and is 0 | ||
assertNotNull(meterRegistry.find(CACHE_SIZE_METRIC).gauge()) | ||
assertEquals(0.0, gauge.value()) |
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.
Actual first param, Expected as second param.
|
||
} | ||
|
||
} |
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.
new line
Signed-off-by: Jasper Kamerling <[email protected]>
Kudos, SonarCloud Quality Gate passed! |
No description provided.