Extract Xray Segment Duration as Metrics

0

We would like to observe the performance of the certain segment of traces. Is it possible to extract the duration and use it as metrics? If this is possible, how can I do it?

Qayyuum
已提問 5 個月前檢視次數 285 次
1 個回答
1
已接受的答案

Hello,

You can use API BatchGetTraces to get trace of certain Trace IDs. The segment and subsegments within that Trace ID will have info on their respective startTime and endTime but to populate this data and use as a metric in CW to evaluate the performance is Not supported by X-Ray.

  1. You can see list of all available trace metrics listed here https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-monitoring.html#xray-sdk-java-monitoring-metrics

  2. X-Ray with ADOT https://aws-otel.github.io/docs/getting-started/collector. - send correlated metrics and traces to multiple AWS monitoring solutions

AWS
支援工程師
已回答 5 個月前
profile picture
專家
已審閱 2 個月前

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

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

回答問題指南