What is X-Amzn-Trace-Id ? | SoloLearn: Learn to code for FREE!

+22

What is X-Amzn-Trace-Id ?

I was doing some https requests with libcurl on httpbin.org and found that Curl automatically sends this header: "X-Amzn-Trace-Id : .........long list of alphanumeric numbers" What is that? https://www.sololearn.com/post/898225/?ref=app https://code.sololearn.com/cEmM4iU9kaLW/?ref=app

1/24/2021 1:48:52 AM

#define CPP ChillPill

1 Answer

New Answer

+24

In Elastic Load Balancing, when an Application Load Balancer handles a request, the trace information is added to the X-Amzn-Trace-Id header You can log this unique identifier and then use it to troubleshoot issues with your load balancer. For example, you can use the X-Amzn-Trace-Id header to identify when many similar requests are received from the same client within a short time. If you have many layers in your stack, you can also use the X-Amzn-Trace-Id header to track a unique request across all the layers. Source : 1. https://aws.amazon.com/premiumsupport/knowledge-center/trace-elb-x-amzn-trace-id/ 2. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-request-tracing.html