Skip to content

Commit eadd7c3

Browse files
committed
README
1 parent 6aa921d commit eadd7c3

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

spring-cloud/tracing/README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# Log Tracing with Spring Cloud Sleuth
1+
# Tracing with Spring Cloud Sleuth, OpenTelemetry and Logz.io
22

3-
This project shows how to implement tracing in a network of Spring Boot applications.
3+
- run `./mvnw clean install` to build the two Spring Boot applications (`downstream-service` and `upstream-service)
4+
- run `LOGZIO_REGION=<YOUR_LOGZIO_REGION> LOGZIO_TRACES_TOKEN=<YOUR_LOGZIO_TRACING_TOKEN> docker-compose up --build`
5+
- call `http://localhost:8080/customers-with-address/<ID>` (where ID is a number from 1 to 50)
46

5-
## Companion Blog Article
6-
The companion blog article to this repository can be found [here](https://reflectoring.io/tracing-with-spring-cloud-sleuth/).
7+
The above HTTP call goes to the `downstream-service`, which will call the `upstream-service` for additional information. This will create a trace across both services, as should be evident in the logs with the same trace id.
78

8-
## Getting Started
9-
10-
* build the sources with `./gradlew clean build` (don't forge to also do this after every change to the code, otherwise Docker will start the old image)
11-
* run the applications in Docker with `docker-compose up --build`
9+
The `docker-compose` command also starts up an OpenTelemetry Collector, to which the Spring Boot apps send their traces. The OpenTelemetry Collector, in turn, sends the traces to Logs.io.

0 commit comments

Comments
 (0)