Skip to content

GetRetrievedTracesGraph

Source: src/AWS/XRay/GetRetrievedTracesGraph.ts

Retrieve the service graph of the traces fetched by a Transaction Search retrieval job.

Bind the operation in the function’s init phase to get a runtime callable; provide the implementation with Effect.provide(XRay.GetRetrievedTracesGraphHttp). The action is account-scoped: X-Ray does not support resource-level permissions for xray:GetRetrievedTracesGraph, so the binding grants it on *.

import * as XRay from "alchemy/AWS/XRay";
// init — grants xray:GetRetrievedTracesGraph
const getRetrievedTracesGraph = yield* XRay.GetRetrievedTracesGraph();
// runtime
const graph = yield* getRetrievedTracesGraph({ RetrievalToken: token });
const services = graph.Services ?? [];