Posts

Showing posts with the label Google Cloud Trace

Spring Boot, Google Cloud Trace - Distributed tracing example

Image
In this section, we will  create 2 simple services ( customer  & product ) and add distributed tracing with Spring Cloud Sleuth , and use Spring Cloud GCP to forward the trace information to Google Cloud Trace . Distributed tracing , also known as distributed request tracing , is a method of monitoring and observing service requests in applications built on a microservices architecture . When we have chained service to service calls, from customer to product , it's important to understand that the calls were successful and also the latency at every step. Spring Cloud Sleuth is used to generate the trace id , span id and add this information to the service calls in the headers and MDC, so that it can be used by tools like Zipkin or Google Cloud trace . By default, it can forward the trace data to Zipkin . Google Cloud Platform has Google Cloud Trace , which is a managed service that allows us to store trace data without having to manage us on Zipkin instance nor storage. In t