|
Sampling Summary and final comments Introduction In this tutorial you will Learn how to integrate tracing into existing applications you use and build. You will implement tracing using Initially you will create a manual trace for the endpoint and print it to the console. You will then learn how to use Visualize your traces. You'll also learn how to use the trace feature to automatically generate traces of database queries. Finally you'll learn about auto-detection and performance considerations when using tracing. tool used to record the path a request takes as it propagates through an application. Tracing helps you link the activities performed by your system in response to any specific request. Tracking also provides timing information about these activities such as start time, duration, etc.
A single trace gives you information about wh photo editing servies at happens when a user or application makes a request. Each trace consists of one or more traces that contain information about the individual steps or tasks that occurred during the request. Using the Trace tool, you can visualize the trace as a chart like the one below. Visualization of a single trace If all goes well you should be able to access it. The Jaeger UI will be empty since your application has not sent traces to it yet. Adding a trace exporter To view traces in you need to set up a new trace exporter which will send traces from your application to instead of just printing them to the console. First install the exporter package in your project .
Copy Now add the exporter to Copy Here you initialized a new one and added it to your tracker provider. Properties in the constructor point to the location where trace data is listened to. You also removed the console exporter because it is no longer needed. You should now be able to see your traces in . To see your first trace query the endpoint again. Go to. Select from the Services drop-down list on the left search tab. Click Find Tracking near the bottom of the Search tab. You should now see a list of tracks. Click on the first track in the list. You will see a detailed view of the trace. There should be a span named.
|
|