简体   繁体   English

AWS X-ray 或 CloudWatch 是否捕获 HTTP 响应 header 内容编码?

[英]Does AWS X-ray or CloudWatch capture the HTTP response header Content-Encoding?

I have an application hosted in AWS which looks to occassionally give responses which have the following header and value.我有一个托管在 AWS 中的应用程序,它偶尔会给出具有以下 header 和值的响应。 It is not all the time, which is what I find odd.不是所有的时间,这就是我觉得奇怪的地方。

Content-Encoding: gzip内容编码:gzip

What I would like to know is whether I can use either AWS X-ray or CloudWatch to query for any responses that have had the Content-Encoding header output.我想知道的是,我是否可以使用 AWS X-ray 或 CloudWatch 来查询具有内容编码header output 的任何响应。

I have checked the AWS X-Ray filters but I cannot seen anything that allows me to search for headers that was contained in a response.我已经检查了 AWS X-Ray 过滤器,但我看不到任何允许我搜索包含在响应中的标头的内容。

Thanks谢谢

AWS X-Ray does not provide a mechanism to capture HTTP header values in the responses, so it would probably not work out for you. AWS X-Ray 不提供在响应中捕获 HTTP header 值的机制,因此它可能不适合您。 I'm not sure of CloudWatch though.不过,我不确定 CloudWatch。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM