feat: aop(시간 측정) 어노테이션 제작 #114
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
운영중에 실행시간이 늦은 api 의 경우 어느 메서드에서 시간이 많이 걸리는지 추적하기 위한 커스텀 어노테이션을 제작했습니다.
다음과 같이 어노테이션을 붙이면 자동으로 시간을 측정해 줍니다.
대략적인 원인 파악 및 검증에는 쓸만 할 거 같네요 ...
참고) aop가 프록시 기반으로 구축이 되어 있어 @service, @component, @controller 와 같이 스프링 빈(bean) 으로 등록된 것만 추적이 가능합니다.
