Use AWS X-Ray tracing API Gateway API execution

When a user requests to the underlying service, you can use your Amazon API Gateway API transmitted through the  AWS X-Ray  to track and analyze a user request, API Gateway supports all API Gateway terminal node type AWS X-Ray tracking: region, while optimizing and private. With Amazon API Gateway, you can use the AWS X-Ray in all regions of the X-Ray available.

X-Ray gives you the entire end-to-view requests, so you can analyze API delays and back-end services. You can use the X-Ray service map to view the entire delay request and delay the integration of the X-Ray downstream services. You can configure rules that tell X-Ray which requests to which the sampling rate of the recording based on criteria you specify. If you call the API Gateway service from being tracked, then the API Gateway will by tracking, even if the X-Ray tracing is not enabled on the API.

You can use the X-Ray Management Console to enable API API Gateway stage, or use the API Gateway API or CLI.

You can use AWS X-Ray to trace and analyze user requests as they travel through your Amazon API Gateway APIs to the underlying services. API Gateway supports AWS X-Ray tracing for all API Gateway endpoint types: regional, edge-optimized, and private. You can use AWS X-Ray with Amazon API Gateway in all regions where X-Ray is available.

X-Ray gives you an end-to-end view of an entire request, so you can analyze latencies in your APIs and their backend services. You can use an X-Ray service map to view the latency of an entire request and that of the downstream services that are integrated with X-Ray. And you can configure sampling rules to tell X-Ray which requests to record, at what sampling rates, according to criteria that you specify. If you call an API Gateway API from a service that's already being traced, API Gateway passes the trace through, even if X-Ray tracing is not enabled on the API.

You can enable X-Ray for an API stage by using the API Gateway management console, or by using the API Gateway API or CLI.

Guess you like

Origin www.cnblogs.com/cloudrivers/p/11234095.html