Enable gateway tracing

更新时间:
复制 MD 格式

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

Procedure

Note

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.

  1. Log on to the API Gateway console.

  2. In the left-side navigation pane, click Cloud-native API Gateway > Instance. In the top navigation bar, select a region.

  3. On the Instance page, click the ID or name of the target instance.

  4. In the left-side navigation pane, click Parameters.

  5. In the Observability Parameters section, click the 1 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 Observation and Analysis > Tracing in the left-side navigation pane.