Datadog RUM Interceptor
A lightweight request/response interceptor for Datadog RUM, giving payload visibility into fetch/XHR traffic for debugging and monitoring.
Datadog RUM’s beforeSend hook tells you a resource request happened — status, timing, URL — but not what was actually sent or received. This interceptor patches fetch and XHR to capture the request and response payloads and hand them back through beforeSend, so a RUM event in the Explorer can carry the actual body instead of just its metadata.
It’s published as @kyletaylored/datadog-rum-interceptor on npm, usable directly in the browser or via a CDN script tag, with no dependency on a bundler.
A tool built to expose payloads for debugging can't itself become a place sensitive data leaks — the redaction hook exists because the first version didn't have one.