Implementation for the ldap connect server metric.#50916
Conversation
| tracing.error(e); | ||
| throw e; | ||
| } finally { | ||
| recordLdapRequest(success, startTimeNanos); |
Unreported flaky test detectedIf the flaky tests below are affected by the changes, please review and update the changes accordingly. Otherwise, a maintainer should report the flaky tests prior to merging the PR. org.keycloak.testsuite.forms.BruteForceTest#testExceedMaxTemporaryLockouts |
| requestTimer.withTags("operation", "connect", "outcome", success ? "success" : "error") | ||
| .record(durationNanos, TimeUnit.NANOSECONDS); |
| tracing.error(e); | ||
| throw e; | ||
| } finally { | ||
| recordLdapRequest(success, startTimeNanos); |
defd196 to
83b64a6
Compare
|
@ruchikajha95 - I just now realized that the test-method is actually not a test, but a test in the admin UI to verify that the connection works. This call doesn't include a metrics as of now, and therefore I wasn't able to deprecate the endpoint. I'll merge it once the build is green. I still wonder if we would eventually refactor it differently; for example having an LdapMetricProvider that has a MicrometerLdapMetricProvider. But that might be a future refactoring. |
Thanks for the review and for clarifying the test-method . Apologies for the confusion on my end. That makes sense now that it's the Admin UI connection test and not a unit test. |
| requestTimer.withTags("operation", "connect", "outcome", success ? "success" : "error") | ||
| .record(durationNanos, TimeUnit.NANOSECONDS); |
Closes keycloak#50840 Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Closes keycloak#50840 Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
Closes keycloak#50840 Signed-off-by: Ruchika <ruchika.jha1@ibm.com>
83b64a6 to
3db9f20
Compare
This PR adds a implementation for a metric that tracks LDAP connection attempts.
In LDAPOperationManager.execute() — the method every LDAP operation (search, create, modify, delete, etc.) flows through before talking to the LDAP server.
RESULTS:
Closes #50840
Signed-off-by: Ruchika ruchika.jha1@ibm.com