This project showcases the OpenTelemetry integration in Spring Boot.
docker compose upStart all three services: user-service, greeting-service and hello-service.
curl -i localhost:8080/api/1You can request different users:
curl -i localhost:8080/api/2or
curl -i localhost:8080/api/3You can also request the greeting in different languages:
curl -i -H "Accept-Language: de" localhost:8080/api/1It knows about English, German and Spanish.
If you want to see a trace with an error in it, use this:
curl -i localhost:8080/api/boomThe 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.