getTraceGraph method
Retrieves a service graph for one or more specific trace IDs.
May throw InvalidRequestException. May throw ThrottledException.
Parameter traceIds
:
Trace IDs of requests for which to generate a service graph.
Parameter nextToken
:
Pagination token.
Implementation
Future<GetTraceGraphResult> getTraceGraph({
required List<String> traceIds,
String? nextToken,
}) async {
ArgumentError.checkNotNull(traceIds, 'traceIds');
final $payload = <String, dynamic>{
'TraceIds': traceIds,
if (nextToken != null) 'NextToken': nextToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/TraceGraph',
exceptionFnMap: _exceptionFns,
);
return GetTraceGraphResult.fromJson(response);
}