.. | ||
back-svc | ||
front-svc | ||
utils | ||
architecture.svg | ||
go.mod | ||
go.sum | ||
Makefile | ||
README.md |
Multi Services Example
This is a simple example of how instrumenting multiple services.
There are 2 services in this example:
front-svc
=> the front service receiving requests from the clientback-svc
=> the service that is being called byfront-svc
(hence namedback
)
All traces will be collected in Jaeger.
How to Run
Make sure to have Docker & Docker Compose installed in your system. After that run this command:
> make run
If the command runs successfully (it will take a moment), you will see something like this in the terminal:
back-svc_1 | 2022/07/23 01:49:29 back service is listening on :8091
front-svc_1 | 2022/07/23 01:49:26 front service is listening on :8090
...
multi-services_client_1 exited with code 0
Open your browser and access http://localhost:16686
to access the Jaeger UI.
You should see some traces available already in the UI.