From 88952bef7dc5bb3e72d25257a593cefe17d8ea4a Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Sat, 21 Dec 2024 18:33:01 +0100 Subject: [PATCH] add @Timed("app.cas.authenticate") --- .../java/net/hostsharing/hsadminng/config/CasAuthenticator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java b/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java index 9fe55f5e..e0d8a9f1 100644 --- a/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java +++ b/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java @@ -1,5 +1,6 @@ package net.hostsharing.hsadminng.config; +import io.micrometer.core.annotation.Timed; import lombok.SneakyThrows; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; @@ -25,6 +26,7 @@ public class CasAuthenticator implements Authenticator { private final RestTemplate restTemplate = new RestTemplate(); @SneakyThrows + @Timed("app.cas.authenticate") public String authenticate(final HttpServletRequest httpRequest) { final var userName = StringUtils.isBlank(casServerUrl) ? bypassCurrentSubject(httpRequest)