Quick Start

Updated at:

This topic describes how to deploy and use distributed tracing to monitor application dependencies and performance in real time and to quickly search for invocation traces.

Before you use distributed tracing, ensure that your environment meets the following prerequisites. You can then use the console to analyze applications, view application details, search for traces, and view associated application logs.

Prerequisites

  1. If the distributed tracing service uses the SOFABoot technology stack:

    • Ensure that SOFABoot is upgraded to version 3.2.1 or later.

    • Ensure that the Tracer dependency is added to the pom.xml file of the SOFABoot project:

      <dependency>
            <groupId>com.alipay.sofa</groupId>
            <artifactId>tracer-enterprise-sofa-boot-starter</artifactId>
      </dependency>
  2. Publish the application to Classic Application Service. For more information about the deployment process, see Classic Application Service > Application Deployment.

  3. Enable Simple Log Service. Distributed tracing uses Simple Log Service to collect application logs. For more information, see Enable Simple Log Service.

  4. Install the log collection client. You can install the client in batches using an O&M script or install it manually.

  5. Associate application logs. This lets you view the logs that correspond to a specific trace segment.

Application analysis

The Application Analysis page in the Distributed Tracing console displays the performance data and topology of your applications for a specific time period.

View application details

In the application topology graph, click an application node to display the View Application Details button. Click the button to open the application's details page. On this page, you can view more monitoring data, such as an application overview, service invocations, message invocations, and database calls.

应用概览

Trace search

On the Trace Search page, you can use a multi-dimensional custom search to quickly find the traces that you want to view. For more information about custom business searches, see Use custom business search terms.链路

View associated application logs

On the trace details page, click the log button next to an application name to view the application's associated logs, as shown in the following figure.应用日志关联