How to check errors sent to XRay for several last days

0

We are using opentelemetry distro for AWS and sending traces to an XRay exporter. The xray dashbord in cloudwatch only allows to look at errors for 6 hours range. Is there a way, using custom dashboards or another service to get the error traces for the N last days? Or at least is it possible to generate alerts for error traces and see them in a dedicated view (or to send emails) ? Thanks

Loic
已提问 3 个月前113 查看次数
1 回答
0

Greetings!

I understand that you want to view your X-Ray traces via the console with a time range set to longer than the past 6 hours.

Unfortunately, the time range window for searching have a 6 hour limit. This limit is set by the AWS X-Ray development team, but you can still able to retrieve all traces within the past 30 days as you can move to different times based on the mentioned retrieval window of 6 hours. [1]

Let me provide you an example of viewing 12 hours of traces: In the search window, changing the view to “Absolute”, you can select a day -> Set your start and end time for a 6 hour period (say 00:00 to 06:00) and then select apply to view those traces. To view a full 12 hours, it would then be necessary to run this again, but adjusting the start and end time now to (start) 06:00 and (end) 12:00. At this point, you would have been able to view 12 hours worth of traces (0:00 - 06:00 and 6:00 - 12:00), even with the 6 hour limit in place.

I hope this information will prove to be useful for you.

Thank You!

References: [1] https://docs.aws.amazon.com/xray/latest/devguide/xray-api-gettingdata.html#xray-api-traces:~:text=name%20%22Example1%22-,Retrieving%20traces,-You%20can%20use

AWS
Asha_O
已回答 3 个月前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则