Cloud-native API Gateway integrates with Managed Service for OpenTelemetry and SkyWalking to help you analyze and diagnose performance bottlenecks in distributed application architectures and improve troubleshooting in microservices. This topic describes how to enable tracing for a gateway instance.
Prerequisites
-
You have created a Cloud-native API Gateway instance. For more information, see Create a gateway instance.
-
You have activated Managed Service for OpenTelemetry. If not, log on to the Managed Service for OpenTelemetry console with your Alibaba Cloud account to activate the service.
Procedure
Cloud-native API Gateway does not charge for the tracing feature. However, Managed Service for OpenTelemetry incurs charges based on your usage. For pricing details, see Managed Service for OpenTelemetry pricing.
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 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 panel, configure parameters such as Tracing Analysis Protocol and Sampling Rate, and then click OK.Parameter
Description
Tracing Analysis Protocol
The following protocols are supported:
-
OpenTelemetry (W3C) (Recommended)
-
Zipkin (B3)
-
SkyWalking
Sampling Rate
The percentage of requests to trace. By default, the sampling rate is 100%, meaning all requests are traced. You can lower this rate based on your business requirements.
After you enable tracing, you can view the trace data for your gateway instance by choosing in the left-side navigation pane.
-