Skip to content

mfvanek/spring-boot-open-telemetry-demo

Repository files navigation

Spring Boot OpenTelemetry Demo

A set of small Spring Boot applications to demonstrate OpenTelemetry capabilities and nuances

Java CI codecov

Spring Cloud Sleuth example

If you are looking for a Spring Boot 2.7.x example with Spring Cloud Sleuth, take a look at version 0.4.1

Local run from IDEA

Start containers

docker-compose --file docker/docker-compose-base.yml  --project-name="spring-boot-open-telemetry-demo" up -d

UI links

Start applications

./gradlew spring-boot-3-demo-app-kotlin:bootRun
./gradlew spring-boot-3-demo-app:bootRun

Make http request

curl http://localhost:8090/current-time
curl http://localhost:8080/current-time

Other endpoints

Run in Docker

Build images

./gradlew dockerBuildImage

Run via Compose

docker-compose --file docker/docker-compose-full.yml  --project-name="spring-boot-open-telemetry-demo" up -d

UI links

How to stop

docker-compose --project-name="spring-boot-open-telemetry-demo" down