Skip to content

Commit

Permalink
Rename counter to service_account_apikey_request_counter
Browse files Browse the repository at this point in the history
  • Loading branch information
ektavarma10 committed Nov 14, 2023
1 parent e209bd7 commit 965680b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public Authentication authenticate(Authentication authentication) {
if(authentication.getName().startsWith("service-account-apikey")) {
LOG.info("Validating request for clientId: {}", authentication.getName().substring("service-account-".length()));

Counter.builder("service_account_api_request_counter").register(MetricUtils.getMeterRegistry()).increment();
Counter.builder("service_account_apikey_request_counter").register(MetricUtils.getMeterRegistry()).increment();
try{
KeycloakAuthenticationToken keycloakToken = (KeycloakAuthenticationToken)authentication;
String bearerToken = keycloakToken.getAccount().getKeycloakSecurityContext().getTokenString();
Expand Down

0 comments on commit 965680b

Please sign in to comment.