Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mfvanek/spring5-mvc-opentracing
Spring 5 MVC demo app with Jaeger Tracing and Embedded Jetty (without Spring Boot)
https://github.com/mfvanek/spring5-mvc-opentracing
embedded-jetty jaeger java java-17 jetty maven opentracing spring-mvc
Last synced: 28 days ago
JSON representation
Spring 5 MVC demo app with Jaeger Tracing and Embedded Jetty (without Spring Boot)
- Host: GitHub
- URL: https://github.com/mfvanek/spring5-mvc-opentracing
- Owner: mfvanek
- License: apache-2.0
- Created: 2020-08-03T11:44:47.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-08T07:54:33.000Z (6 months ago)
- Last Synced: 2024-05-08T08:39:15.369Z (6 months ago)
- Topics: embedded-jetty, jaeger, java, java-17, jetty, maven, opentracing, spring-mvc
- Language: Java
- Homepage:
- Size: 82 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring5-mvc-opentracing
Spring 5 MVC demo app with embedded Jetty (without Spring Boot!) and OpenTracing[![Java CI](https://github.com/mfvanek/spring5-mvc-opentracing/actions/workflows/tests.yml/badge.svg)](https://github.com/mfvanek/spring5-mvc-opentracing/actions/workflows/tests.yml)
## Open in Browser
* http://localhost:8080/api/v1/demo
* http://localhost:8080/api/v1/demoException
* http://localhost:8080/api/v1/welcome## Swagger
* http://localhost:8080/v2/api-docs
* http://localhost:8080/swagger-ui/
* http://localhost:8080/swagger-ui/index.html## 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`