AWS X-Ray SDK Fetch

JSON →
library 3.12.0 ·javascript
verified Jun 7, 2026

Plugin for AWS X-Ray SDK that instruments fetch (global fetch in Node.js 18+, or node-fetch v2). Current version 3.12.0 requires aws-xray-sdk-core as a peer dependency. Provides captureFetchGlobal and captureFetchModule functions. Key differentiator: enables distributed tracing for HTTP requests made with fetch, with support for downstream X-Ray headers. Ships TypeScript types. CJS-only, incompatible with node-fetch v3 (ESM).