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
asked 5 months ago257 views
1 Answer
1
Accepted Answer

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
SUPPORT ENGINEER
answered 4 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