forked from kimhyungsik/ax_hub_mcp_tool
fix: Update AOP pointcuts to correct package paths
This commit is contained in:
@@ -13,8 +13,8 @@ import java.util.Arrays;
|
|||||||
@Component
|
@Component
|
||||||
public class EimsMonitoringAspect {
|
public class EimsMonitoringAspect {
|
||||||
|
|
||||||
// 포인트컷: com.shinhan.mcp.adapter.service 패키지 내의 EimsSender를 구현한 모든 클래스의 메서드를 타겟으로 지정합니다.
|
// 포인트컷: io.shinhanlife.axhub.biz.mcp.adapter.sender 패키지 내의 EimsSender를 구현한 모든 클래스의 메서드를 타겟으로 지정합니다.
|
||||||
@Around("execution(* com.shinhan.mcp.adapter.service.*EimsSender.*(..))")
|
@Around("execution(* io.shinhanlife.axhub.biz.mcp.adapter.sender.*EimsSender.*(..))")
|
||||||
public Object monitorEimsCommunication(ProceedingJoinPoint joinPoint) throws Throwable {
|
public Object monitorEimsCommunication(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||||
|
|
||||||
// 1. 호출되는 클래스와 메서드 이름 추출
|
// 1. 호출되는 클래스와 메서드 이름 추출
|
||||||
|
|||||||
@@ -12,9 +12,10 @@ import org.springframework.util.StopWatch;
|
|||||||
@Component
|
@Component
|
||||||
public class GatewayLoggingAspect {
|
public class GatewayLoggingAspect {
|
||||||
|
|
||||||
// connector 패키지 하위의 모든 클래스/메서드 실행 시 작동
|
// controller 및 connector 패키지 하위의 모든 클래스/메서드 실행 시 작동
|
||||||
@Around("execution(* com.shinhan.mcp.adapter.controller..*(..)) " +
|
@Around("execution(* io.shinhanlife.axhub.biz.mcp.gateway.controller..*(..)) " +
|
||||||
"|| execution(* com.shinhan.mcp.adapter.connector..*(..))")
|
"|| execution(* io.shinhanlife.axhub.biz.mcp.tool.controller..*(..)) " +
|
||||||
|
"|| execution(* io.shinhanlife.axhub.biz.mcp.adapter.connector..*(..))")
|
||||||
public Object logConnectorExecutionTime(ProceedingJoinPoint joinPoint) throws Throwable {
|
public Object logConnectorExecutionTime(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||||
String targetMethod = joinPoint.getSignature().toShortString();
|
String targetMethod = joinPoint.getSignature().toShortString();
|
||||||
StopWatch stopWatch = new StopWatch();
|
StopWatch stopWatch = new StopWatch();
|
||||||
|
|||||||
Reference in New Issue
Block a user