I'm trying to use XRay#GetTraceSummaries
in order to gather statistics on all of my companies services. However the docs says that the response object should include allot more things than what I'm actually getting. Most notably I'm missing the ServiceIds
field. Do i need to set something up in the instrumentation of the services in order for this to be included?
Asked
Active
Viewed 85 times
0

Olian04
- 6,480
- 2
- 27
- 54
1 Answers
0
The API GetTraceSummaries
can help you quickly discover trace ids that satisfy a certain criteria https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html#console-filters-syntax. The returned results only carry minimum information at trace level for performance. You can then use the discovered trace ids to retrieve the full trace data by calling BatchGetTraces
.
What specific information you are looking for on service level in a trace summary context? Did you check GetServiceGraph
which returns all services with statistics (fault/error/throttle count)?

haotian465
- 679
- 3
- 4