Compile and run

To start this example, you can use the cargo run command. When the example starts, it will continuously produce spans and send them to the running Jaeger instance. You will need to wait for a short interval and interrupt the application, otherwise it will generate too many spans.

Open the web UI of Jaeger in a browser. Choose router in the Service field, and click the Find Traces button to find the corresponding spans. You will see recent traces, and if you click on one of them, you will see the details of the tracing:

As you can see, distributed tracing registered activities of our application, and we can use it as a tool for logging the distributed activities of microservices that are included in our application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.189.170.134