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 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南