From 93595c12e0b8322c758e8fad078383580e5dfa74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=A1=EC=98=81=EB=AF=BC?= Date: Sun, 14 Jul 2024 20:46:18 +0900 Subject: [PATCH] Revert "feat: only fetch for path" This reverts commit 1905a6a0fdce8661ee100771fe1cc68a024b183f. --- api-gateway/src/main/java/kr/mafoo/gateway/TracingConfig.java | 3 +++ .../src/main/java/kr/mafoo/photo/config/TracingConfig.java | 3 +++ .../src/main/java/kr/mafoo/user/config/TracingConfig.java | 3 +++ 3 files changed, 9 insertions(+) diff --git a/api-gateway/src/main/java/kr/mafoo/gateway/TracingConfig.java b/api-gateway/src/main/java/kr/mafoo/gateway/TracingConfig.java index cbed56c..2746c2a 100644 --- a/api-gateway/src/main/java/kr/mafoo/gateway/TracingConfig.java +++ b/api-gateway/src/main/java/kr/mafoo/gateway/TracingConfig.java @@ -19,6 +19,9 @@ ObservationPredicate noopServerRequestObservationPredicate() { return false; } } + if (StringUtils.equalsAny(name,"spring.security.filterchains","spring.security.authorizations","spring.security.http.secured.requests")) { + return false; + } return true; }; diff --git a/photo-service/src/main/java/kr/mafoo/photo/config/TracingConfig.java b/photo-service/src/main/java/kr/mafoo/photo/config/TracingConfig.java index 8942ff4..2783bf0 100644 --- a/photo-service/src/main/java/kr/mafoo/photo/config/TracingConfig.java +++ b/photo-service/src/main/java/kr/mafoo/photo/config/TracingConfig.java @@ -19,6 +19,9 @@ ObservationPredicate noopServerRequestObservationPredicate() { return false; } } + if (StringUtils.equalsAny(name,"spring.security.filterchains","spring.security.authorizations","spring.security.http.secured.requests")) { + return false; + } return true; }; diff --git a/user-service/src/main/java/kr/mafoo/user/config/TracingConfig.java b/user-service/src/main/java/kr/mafoo/user/config/TracingConfig.java index d1293b7..02109e4 100644 --- a/user-service/src/main/java/kr/mafoo/user/config/TracingConfig.java +++ b/user-service/src/main/java/kr/mafoo/user/config/TracingConfig.java @@ -19,6 +19,9 @@ ObservationPredicate noopServerRequestObservationPredicate() { return false; } } + if (StringUtils.equalsAny(name,"spring.security.filterchains","spring.security.authorizations","spring.security.http.secured.requests")) { + return false; + } return true; };