I promised at the beginning of this chapter to make this application interesting. So far, it was just a single process and not particularly exciting as a testbed for distributed tracing. In this exercise, we will turn the Hello application from a monolith into a microservices-based application. While doing that, we will learn how to:
Trace a transaction across more than one microservice
Pass the context between processes using inject and extract trace points
Apply OpenTracing-recommended tags
Our main application internally performs two primary functions: retrieving a person's information from the database and formatting it into a greeting. We can extract these two functions into their own microservices. We will call the first one "Big Brother" and the second "Formatter." The Big Brother service will listen on HTTP port 8081 and serve a single endpoint getPerson
, reading the name of the person as the path parameter, similar to the...