Since we are talking about integrating tracing with logs and metrics, we will run the backends for all three of these monitoring tools:
Jaeger for traces
Prometheus for metrics
The ELK stack (Elasticsearch, Logstash, Kibana) for logs
This section provides instructions on setting up the environment to run the Hello application.
The code can be found in the Chapter11
directory of the book's source code repository on GitHub. Please refer to Chapter 4, Instrumentation Basics with OpenTracing, for instructions on how to download it, then switch to the Chapter11
directory, from which all example code can be run.
The source code of the application is organized in the following structure:
Mastering-Distributed-Tracing/ Chapter11/ exercise1/ client/ formatter/ hello/ lib/ elasticsearch/ kibana/ logstash/ prometheus/ docker-compose.yml pom.xml
The application is composed of two microservices, hello
and formatter
, and a client...