Cloud-native gateways of Microservices Engine (MSE) can be integrated with Tracing Analysis and SkyWalking. You can use Tracing Analysis and SkyWalking to analyze and diagnose performance bottlenecks in a distributed application architecture and improve the efficiency of development and diagnostics for microservice applications. If you use the Tracing Analysis service in MSE, you are not charged for Tracing Analysis in the MSE console. Instead, you are charged for Tracing Analysis in the Tracing Analysis console based on the amount of resources that you used. This topic describes how to enable Tracing Analysis for a cloud-native gateway to implement the observability of the gateway.
Enable Tracing Analysis
If you use MSE, tracing analysis is provided free of charge. If you use the Tracing Analysis service on MSE, you are charged for Tracing Analysis based on the amount of resources that you used. For more information about the pricing, see Tracing Analysis pricing.
Log on to the MSE console, and select a region in the top navigation bar.
In the left-side navigation pane, choose Cloud-native Gateway > Gateways. On the Gateways page, click the name of the gateway.
In the left-side navigation pane, click Parameter Settings.
In the Observability Parameters section, click the icon next to Tracing Analysis. In the Configure Tracing Analysis dialog box, specify the Tracing Analysis and Sample Rate parameters, and click OK.
You can select xtrace or skywalking.
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.
This parameter is valid only if you select skywalking for Tracing Analysis. Set this parameter to the name of the SkyWalking service that is imported to the cloud-native gateway.
This parameter is valid only if you select skywalking for Tracing Analysis. Set this parameter to the gRPC service port of the SkyWalking service.
If you enable Tracing Analysis based on XTrace, you can view the metric data of the gateway in the Tracing Analysis console. If you enable Tracing Analysis based on SkyWalking, you can view the metric data of the gateway in the SkyWalking console that you deploy.