You can enable Tracing Analysis for Ingresses in an Container Service for Kubernetes
(ACK) cluster. Tracing data is imported to the Tracing Analysis console. You can view
traces and the trace topology in the Tracing Analysis console. This topic describes
how to enable Tracing Analysis for Ingresses.
Background information
Tracing Analysis provides various features for distributed applications, including
trace mapping, request counting, and trace topology. These features allow you to analyze
and diagnose the performance bottlenecks of distributed applications, and improve
the efficiency of microservice development and diagnostics. You can enable Tracing
Analysis for NGINX Ingress controllers that are provided by ACK based on your requirements.
After Tracing Analysis is enabled, you can view the tracing data.
Step 1: Obtain an endpoint
Obtain an endpoint. Select a client based on your requirements. In this example, a
Zipkin client is used.
- Log on Tracing Analysis console.
- In the left-side navigation pane, click Cluster Configurations.
- On the Cluster Configurations page, click the Access point information tab. Then, turn on Show Token for the Cluster Information parameter.
- Set the Client parameter to Zipkin.
- In the Related Information column of the table in the lower part, click the copy icon
next to the endpoint that you want to use.

Note If you deploy your application in an Alibaba Cloud production environment, select
a private endpoint. Otherwise, select a public endpoint.
Step 2: Enable Tracing Analysis for Ingresses
- Log on to the ACK console.
- In the left-side navigation pane of the ACK console, click Clusters.
- On the Clusters page, find the cluster that you want to manage and click the name of the cluster
or click Details in the Actions column. The details page of the cluster appears.
- In the left-side navigation pane of the details page, choose .
- On the ConfigMap page, enter nginx-configuration into the Name search box and click
the search icon. Find the nginx-configuration ConfigMap and click Edit in the Actions column.
- Configure Tracing Analysis.
Edit the ConfigMap based on the client that is used. In this example, a Zipkin client
is used.
In the Edit panel, click Add. Set Name to zipkin-collector-host. Set Value to the endpoint that is obtained in Step 1: Obtain an endpoint.
- Enable Tracing Analysis.
Click Add. Set Name to enable-opentracing. Set Value to true. Then, click OK.
Step 3: View the tracing data
- Log on Tracing Analysis console.
- In the left-side navigation pane, click Applications.
- On the Applications page, select a region at the top of the page and click the application that you want
to manage.
- In the left-side navigation pane of the details page, click Interface Calls. On the page that appears, click the Traces tab. You can view up to 100 traces on
the tab. These traces are sorted in descending order of elapsed time. For more information
about the tracing data, see View the details of span calls.