This project showcases the OpenTelemetry integration in Spring Boot.
docker compose upStart all three services: user-service, greeting-service and hello-service.
curl localhost:8080/api/1You can request different users:
curl localhost:8080/api/2or
curl localhost:8080/api/3You can also request the greeting in different languages:
curl -H "Accept-Language: de" localhost:8080/api/1It knows about English, German and Spanish.
The applications are configured to send logs, metrics and traces to the Grafana LGTM stack, which is running in Docker Compose.
user-service knows the users, greeting-service knows the greetings. hello-service calls the user-service to get the user for a given id, then calls the greeting-service to get the greeting for a given locale, then combines the two to create a greeting and returns it.