All Products
Search
Document Center

Microservices Engine:Enable Tracing Analysis for a cloud-native gateway

Last Updated:Sep 27, 2023

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.

Prerequisites

Enable Tracing Analysis

Note

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.

  1. Log on to the MSE console, and select a region in the top navigation bar.

  2. In the left-side navigation pane, choose Cloud-native Gateway > Gateways. On the Gateways page, click the name of the gateway.

  3. In the left-side navigation pane, click Parameter Settings.

  4. In the Observability Parameters section, click the 1 icon next to Tracing Analysis. In the Configure Tracing Analysis dialog box, specify the Tracing Analysis and Sample Rate parameters, and click OK.

    1

    Parameter

    Description

    Tracing Analysis

    You can select xtrace or skywalking.

    Sample 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.

    SkyWalking Service

    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.

    Port

    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.