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
전문가
검토됨 한 달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠