[英]How to filter traces by value in segments list in AWS X-Ray Traces
在 AWS CloudWatch -> X-Ray -> Traces 中,我可以找到如下痕迹:
{
"Id": "1234",
"Duration": 26.753,
"LimitExceeded": false,
"Segments": [
{
"Id": "1qaz",
"Document": {
"id": "1qaz",
"name": "somesite.io",
"start_time": 221,
"trace_id": "1234",
"end_time": 222,
"parent_id": "qwerty",
"inferred": true,
"http": {
"request": {
"url": "https://somesite.io/api/SUPERID",
"method": "POST"
},
"response": {
"status": 200,
"content_length": 100
}
}
}
}
]
}
我希望在 JSON 上面的值SUPERID
中找到跟踪:
Segments[?].Document.http.request.url
总结一下:我正在寻找示例查询应该输入什么来Find
输入以通过SUPERID
值查找上面的跟踪
参考X-Ray filter expression有2种方式:
http.url
过滤SUPERID
,然后通过annotation.key
过滤
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.