otelchi/examples/multi-services
2025-03-22 23:29:15 +13:00
..
back-svc Added the files for this package. 2025-03-22 23:29:15 +13:00
front-svc Added the files for this package. 2025-03-22 23:29:15 +13:00
utils Added the files for this package. 2025-03-22 23:29:15 +13:00
architecture.svg Added the files for this package. 2025-03-22 23:29:15 +13:00
go.mod Added the files for this package. 2025-03-22 23:29:15 +13:00
go.sum Added the files for this package. 2025-03-22 23:29:15 +13:00
Makefile Added the files for this package. 2025-03-22 23:29:15 +13:00
README.md Added the files for this package. 2025-03-22 23:29:15 +13:00

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 client
  • back-svc => the service that is being called by front-svc (hence named back)

Architecture Diagram

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.