Cloud-native API Gateway integrates with Managed Service for OpenTelemetry and SkyWalking to provide distributed tracing. After you enable tracing analysis, you can trace requests and diagnose performance bottlenecks across your microservices architecture.
Prerequisites
Before you begin, make sure that you have:
-
A Cloud-native API Gateway instance. For more information, see Create a gateway instance.
-
Managed Service for OpenTelemetry is activated. To activate the service, log on to the Managed Service for OpenTelemetry console with your Alibaba Cloud account.
Billing
Tracing analysis fees are charged by Managed Service for OpenTelemetry based on resource usage, not by Cloud-native API Gateway. For details, see Managed Service for OpenTelemetry pricing.
Procedure
Log on to the API Gateway console.
In the left-side navigation pane, click . In the top navigation bar, select a region.
-
On the Instance page, click the ID or name of the target gateway instance.
-
In the left-side navigation pane, click Parameters.
-
In the Observability Parameters section, click the
icon next to Tracing. -
In the Configure Tracing Analysis dialog box, configure the following parameters and click OK.

Parameter
Description
Tracing Analysis Protocol
Select a trace propagation protocol. Options: OpenTelemetry (W3C) (recommended), Zipkin (B3), and SkyWalking.
Sampling Rate
Set the percentage of requests to sample. Default:
100(all requests). You can decrease the sampling rate based on your business requirements.
Verify the result
After you enable tracing analysis, go to in the left-side navigation pane to view trace data for the gateway instance.