fix: Update AOP pointcuts to correct package paths

This commit is contained in:
jade
2026-07-05 16:47:20 +09:00
parent 0c126be50f
commit 741cd81509
2 changed files with 6 additions and 5 deletions

View File

@@ -13,8 +13,8 @@ import java.util.Arrays;
@Component
public class EimsMonitoringAspect {
// 포인트컷: com.shinhan.mcp.adapter.service 패키지 내의 EimsSender를 구현한 모든 클래스의 메서드를 타겟으로 지정합니다.
@Around("execution(* com.shinhan.mcp.adapter.service.*EimsSender.*(..))")
// 포인트컷: io.shinhanlife.axhub.biz.mcp.adapter.sender 패키지 내의 EimsSender를 구현한 모든 클래스의 메서드를 타겟으로 지정합니다.
@Around("execution(* io.shinhanlife.axhub.biz.mcp.adapter.sender.*EimsSender.*(..))")
public Object monitorEimsCommunication(ProceedingJoinPoint joinPoint) throws Throwable {
// 1. 호출되는 클래스와 메서드 이름 추출

View File

@@ -12,9 +12,10 @@ import org.springframework.util.StopWatch;
@Component
public class GatewayLoggingAspect {
// connector 패키지 하위의 모든 클래스/메서드 실행 시 작동
@Around("execution(* com.shinhan.mcp.adapter.controller..*(..)) " +
"|| execution(* com.shinhan.mcp.adapter.connector..*(..))")
// controller 및 connector 패키지 하위의 모든 클래스/메서드 실행 시 작동
@Around("execution(* io.shinhanlife.axhub.biz.mcp.gateway.controller..*(..)) " +
"|| execution(* io.shinhanlife.axhub.biz.mcp.tool.controller..*(..)) " +
"|| execution(* io.shinhanlife.axhub.biz.mcp.adapter.connector..*(..))")
public Object logConnectorExecutionTime(ProceedingJoinPoint joinPoint) throws Throwable {
String targetMethod = joinPoint.getSignature().toShortString();
StopWatch stopWatch = new StopWatch();