Skip to content

Commit

Permalink
Merge pull request #159 from adobe/missingresource-1x
Browse files Browse the repository at this point in the history
feat(missingresource): remove feature flag (1.x)
  • Loading branch information
trieloff authored May 6, 2024
2 parents 0c29a07 + 0bad440 commit 701246f
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 @@ -182,14 +182,11 @@ new PerformanceObserver((list) => {
.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 });
});
}
list.getEntries()
.filter((entry) => entry.responseStatus === 404)
.forEach((entry) => {
sampleRUM('missingresource', { source: entry.name, target: entry.hostname });
});
}).observe({ type: 'resource', buffered: true });

[...new URLSearchParams(window.location.search).entries()]
Expand Down

0 comments on commit 701246f

Please sign in to comment.