Chapter 12: Logging and Tracing
In this chapter, you will explore the logging and monitoring tools, the ELK (Elastic Search, Logstash, Kibana) stack and Zipkin. This tool will then be used to implement the distributed logging and tracing of the request/response of API calls. Spring Sleuth will be used to inject the tracing information into API calls. You will learn how to publish and analyze the logging and tracing of different requests and logs related to responses.
These aggregated logs will help you to troubleshoot web services. You will call one service (such as gRPC client), which will then call another service (such as gRPC server), and link them with a trace identifier. Then, using this trace identifier, you can search the centralized logs and debug the request flows. In this chapter, we will use this sample flow. However, the same can be used where service calls require more internal calls. You will also use Zipkin to ascertain the performance of each API call.
You will...