Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

Spring 5 MVC demo app with Jaeger Tracing and Embedded Jetty (without Spring Boot)

License

Notifications You must be signed in to change notification settings

mfvanek/spring5-mvc-opentracing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring5-mvc-opentracing

Spring 5 MVC demo app with embedded Jetty (without Spring Boot!) and OpenTracing

Java CI

Open in Browser

Swagger

Run in Docker

docker run --name spring5-mvc-opentracing -d -p 8080:8080 localhost:5000/spring5-mvc-opentracing:1.0-SNAPSHOT

Run Jaeger in Docker

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 14250:14250 \
  -p 14268:14268 \
  -p 14269:14269 \
  -p 9411:9411 \
  jaegertracing/all-in-one:1.32

Jaeger UI will start at http://localhost:16686

Useful Commands

# Create uber jar
mvn clean install

# Run uber jar
java -jar target/spring5-mvc-opentracing-jar-with-dependencies.jar

Build Docker image

mvn clean package docker:build