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
asked 2 months ago101 views
1 Answer
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
answered 2 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions