Skip to main content

Tracing

🕓 10 minutes

What you’ll learn​

This tutorial details how to use tracing for monitoring, analysing, debugging, and optimising your code. Tracing helps you to:

  • detect failures and the place where they occur;
  • and understand what causes the poor performance of the application.

Prerequisites​

Steps​

  1. Find the "Logging & Tracing" section in the sidebar menu and go to the "Tracing" option.
  2. Get a traceID if you don't have one already. Paste the traceID into the search field and click on the "Run query" button.
    note

    If you don't know how to get a traceID, see API Execution/Testing with Swagger or Internal documentation.

  3. Now you can view your trace.
  4. For details, expand your trace.
  5. If the trace has a "Log" icon, you can also view logs for it.
  6. You can also add |="your_trace_id" (for example: |="8f23f1ac55bd287553370fdd783f88a8") after the log command that you've already had. This will show all logs for this component only for this traceID.
  7. You can also use the search field to find the specific component. Result will be highlighted in yellow:
tip

Learn more about Jaeger