Skip to content

rahulva/spring-boot3-tracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jeager

docker run -p 9090:16686 — name jaeger -d jaegertracing/all-in-one:1.17

docker run -d --name jaeger \
  -e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
  -p 5775:5775/udp \
  -p 6831:6831/udp \
  -p 6832:6832/udp \
  -p 5778:5778 \
  -p 16686:16686 \
  -p 14268:14268 \
  -p 14250:14250 \
  -p 9411:9411 \
  jaegertracing/all-in-one:1.22

http://localhost:16686

This is a POC to follow following steps
Spring boot 2.7 tracing with Jeager
Spring boot migration from 2.7 to 3.5
Using OpenTe


Tire2
http://localhost:8083/products
http://localhost:8083/products/3

Tire1
http://localhost:8082/orders/1

Tire1 > Tire2


Spring boot 2.7.x Jeager tracer registration process
/Users/rahulvr/.m2/repository/io/opentracing/contrib/opentracing-spring-web-starter/3.0.1/opentracing-spring-web-starter-3.0.1.jar!/io/opentracing/contrib/spring/web/starter/ServerTracingAutoConfiguration.class

2023-04-07 10:46:12.025  INFO 12462 --- [  restartedMain] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 130 ms
2023-04-07 10:46:12.048  INFO 12462 --- [  restartedMain] o.c.s.w.s.ServerTracingAutoConfiguration : Creating FilterRegistrationBean bean with TracingFilter mapped to [], skip pattern is "/api-docs.*|/swagger.*|.*\.png|.*\.css|.*\.js|.*\.html|/favicon.ico|/hystrix.stream"
2023-04-07 10:46:12.080  INFO 12462 --- [  restartedMain] o.c.s.w.s.ServerTracingAutoConfiguration : Creating WebMvcConfigurer bean with class io.opentracing.contrib.spring.web.interceptor.TracingHandlerInterceptor
2023-04-07 10:46:12.223  WARN 12462 --- [  restartedMain] o.s.b.d.a.OptionalLiveReloadServer       : Unable to start LiveReload server

When Simpley upgrading Tracing does not work