Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |
Tags
- IllegalStateException
- pessimistic lock
- demand paging
- ExceptionResolver
- 프로그래머스
- HandlerMethod
- 단어변환
- Transaction
- optimistic lock
- Java
- NestJS 요청흐름
- API
- SPOF
- propagation
- type eraser
- generic type
- RequestMappingHandlerMapping
- COPYOFRANGE
- 역정규화
- assertJ
- 벌크연산
- wrapper class
- tracking-modes
- CORS
- Generic method
- CQS
- cross-cutting concerns
- TDZ
- hoisting
- #@Transacional
Archives
- Today
- Total
jingyulog
Distributed Server - Zipkin in SpringBoot3 본문
Before SpringBoot3
Sleuth(Tracing Configuration) -> Brave(Tracer Library) -> Zipkin
From SpringBoot3
Micrometer(metrics, logs, traces) -> OpenTelemetry(metrics, logs, traces) -> Zipkin
gradle settings
implementation 'io.micrometer:micrometer-observation'
implementation 'io.micrometer:micrometer-tracing-bridge-otel'
implementation 'io.opentelemetry:opentelemetry-exporter-zipkin'
application.properties 설정
#spring.sleuth.sampler.probability=1.0 #SB2
management.tracing.sampling.probability=1.0 #SB3
logging.pattern.level=%5p [${spring.application.name:},%X{traceId:-},%X{spanId:-}] #SB3
- 1.0 -> want to trace every request
- 0.05 -> 5%
how to use in docker-compose
#SPRING.ZIPKIN.BASEURL: http://zipkin-server:9411/ #SB2
MANAGEMENT.ZIPKIN.TRACING.ENDPOINT: http://zipkin-server:9411/api/v2/spans #SB3