This project is a quick example to showcase Distributed Tracing in a Spring Boot application using Spring Cloud Sleuth and OpenTelemetry.
There are 2 tracing scenarios - HTTP and Apache Kafka
NOTE: This example uses Spring Boot 2.5, Spring Cloud 2020.0.4 and Spring Cloud Sleuth OTel 1.0.0-M12 (not yet GA)
- HTTP Service 1 makes a GET call to HTTP Service 2.
- HTTP Service 2 makes a GET call to whatthecommit.com.
- HTTP Service 2 returns the response from whatthecommit.com back to HTTP Service 1.
NOTE: This example uses Spring Boot 2.6.0-RC1, Spring Cloud 2021.0.0-M2 and Spring Cloud Sleuth OTel 1.1.0-M3 (not yet GA)
- Kafka Producer makes a GET call to whatthecommit.com.
- Kafka Producer produces the response from Step 1 to Apache Kafka.
- Kafka Consumer consumes the message from Apache Kafka.
- After consumption, Kafka Consumer store the record in H2 in-memory DB.