Skip to content

Commit

Permalink
feat(missingresource): remove feature flag (2.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
trieloff committed Apr 18, 2024
1 parent 92883ef commit 0905922
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,14 +178,11 @@ function addLoadResourceTracking() {
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 });
});
}
list.getEntries()
.filter((entry) => entry.responseStatus === 404)
.forEach((entry) => {
sampleRUM('missingresource', { source: entry.name, target: entry.hostname });
});
});
observer.observe({ type: 'resource', buffered: true });
}
Expand Down

0 comments on commit 0905922

Please sign in to comment.