Cloud-native API Gateway integrates with Managed Service for OpenTelemetry and SkyWalking to help you analyze and diagnose performance bottlenecks in distributed architectures and improve microservices troubleshooting.
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 tracing. 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. The default sampling rate is 100%, which means 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.
-