Added bam.nr-data.net to connect-src exception for NewRelic #1726
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary | Résumé
NewRelic needs to be listed in the list of allowed domain of
connect-src
to push through following API its monitoring metrics:ping,
fetch(),
XMLHttpRequest,
WebSocket,
EventSource, and
Navigator.sendBeacon().
NewRelic explanation on bam.nr-data.net
So what is bam.nr-data.net?
Here’s the short explanation: The Browser application monitoring agent transmits data to New Relic’s data collection servers via the domain bam.nr-data.net. Of course, there’s more to the story than that. If you’re the kind of person that needs to know more, then read on!
How does New Relic Browser monitoring work?
Depending on your subscription level, New Relic Browser can monitor a variety of details about everything from page load timing to time spent in the front end, time spent in the back end, geography, and browser type.
To collect the data, New Relic Browser uses JavaScript elements pasted or injected into your webpages, typically as part of the HEAD of the page, containing configuration details and essential browser environment instrumentation. Once the page finishes loading, an additional script is downloaded from a CDN server. This additional script processes collected data and reports it back to New Relic via bam.nr-data.net so that you can see the data in your New Relic account. You can find more details about how Browser instrumentation works in the documentation.
You should also know that New Relic Browser only collects performance data, as explained in this document. It does not collect any data used or stored by the monitored application unless you explicitly configure it to do so.
Test instructions | Instructions pour tester la modification
We need to push to staging environment to test it (where NewRelic is enabled).