pinpoint plugin config
·
CloudNative/Observability & Analysis
pinpoint apm 사용하면 서비스간의 호출이 kiali처럼 시각화되어 보이는데,플러그인을 활성화하면 rabbitmq와 같은 비동기호출에 대한 처리도 보여진다.몇가지 정리해본다.# ==========================================================# Pinpoint Agent Configuration File# ==========================================================# General Settingsprofiler.application.name=MyApp # 애플리케이션 이름 (필수)profiler.agent.id=MyAppAgent # ..
springboot resttemplate config 와 restClient 생성
·
개발/java
동기 통신이다. 우선 resttemplate 를 써보자 환경은 다음과 같다. springboot 2.7.18 jdk 11.0.21 dependency를 추가한다. org.springframework.boot spring-boot-starter-web 공통화를 위해 우선 interceptor를 만들어보자. ClientHttpRequestInterceptor를 구현하는 HttpClientRequestInterceptor 클래스를 생성하여 req, res에 대해 로깅을 준비한다. @Slf4j public class HttpClientRequestInterceptor implements ClientHttpRequestInterceptor { @Override public ClientHttpResponse int..
springboot rabbitmq config와 DLQ 예제
·
개발/java
rabbitmq 를 설정하고 사용해보자 환경은 다음과 같다 springboot 2.7.18 jdk 11.0.21 개발에 앞서 로컬 rabbitmq 구성 방법은 이전 게시물을 참고한다 https://fullmooney.tistory.com/29 rabbitmq 로컬구성과 DLQ 설정 도커데스크탑으로 rabbitmq DLQ 설정을 해보자 환경은 다음과 같다. Windows 10 docker desktop 4.15.0 먼저 dockerhub에서 rabbitmq를 검색해서 오피셜 이미지를 받는다. 테스트는 3.12.12-management 태그로 진행했다. fullmooney.tistory.com dependency를 추가한다. org.springframework.cloud spring-cloud-starter..