Cloud-native API Gateway can be integrated with Managed Service for OpenTelemetry and SkyWalking. You can use Managed Service for OpenTelemetry and SkyWalking to analyze and diagnose performance bottlenecks in a distributed application architecture and improve the efficiency of development and diagnostics for microservices applications. This topic describes how to enable tracing analysis for a Cloud-native API Gateway instance to improve the observability of the Cloud-native API Gateway instance.
Prerequisites
A Cloud-native API Gateway instance is created. For more information, see Create a gateway instance.
Managed Service for OpenTelemetry is activated. If it is not activated, log on to the Managed Service for OpenTelemetry console by using your Alibaba Cloud account and activate the service.
Enable tracing analysis
Tracing analysis fees are not charged by Cloud-native API Gateway, but by Managed Service for OpenTelemetry based on the amount of resources that you use. For more information about the pricing, see Managed Service for OpenTelemetry pricing.
Log on to the Cloud-native API Gateway console.
In the left-side navigation pane, click Instance. In the top navigation bar, select a region.
On the Instance page, click the ID or name of the Cloud-native API Gateway instance that you want to manage.
In the left-side navigation pane, click Parameters.
In the Observability Parameters section, click the
icon on the right side of Tracing. In the Configure Tracing Analysis dialog box, configure the Tracing Analysis Protocol and Sampling Rate parameters, and click OK. 
Parameter
Description
Tracing Analysis Protocol
The following protocols are supported:
OpenTelemetry (W3C) (recommended)
Zipkin (B3)
Skywalking
Sampling Rate
The default value is 100, which indicates that all requests are collected as samples. You can decrease the sampling rate based on your business requirements.
After you enable tracing analysis for a Cloud-native API Gateway instance, you can choose in the left-side navigation pane to view the analysis data of the Cloud-native API Gateway instance on the Tracing page.