diff --git a/src/index.js b/src/index.js index 864a1aa..845da27 100644 --- a/src/index.js +++ b/src/index.js @@ -171,6 +171,15 @@ function addLoadResourceTracking() { .forEach((entry) => { sampleRUM('loadresource', { source: entry.name, target: Math.round(entry.duration) }); }); + + if (window.origin === 'business.adobe.com') { + // feature flagged for now + list.getEntries() + .filter((entry) => entry.responseStatus === 404) + .forEach((entry) => { + sampleRUM('missingresource', { source: entry.name, target: entry.hostname }); + }); + } }); observer.observe({ type: 'resource', buffered: true }); }