Browser monitoring supports the uploading of source maps.
Browser gives you two options for using source maps:
- Upload source maps via the browser UI
- Publish source maps to browser via the API
To drag in or upload a source map to browser, the source map must be on your local machine.
To associate a source map with an error stack trace on the JS errors page:
From the selected JS error group, select the error instance details tab (next to the Summary tab).
An error frame with a gray strip on the left side indicate minified JS; a blue strip indicates it has had a source map applied.
Other JS error frame features include:
If you want to...
See more of the surrounding code
See original, minified file information
Remove a source map
From an expanded stack trace frame, select Remove file.
If you have uploaded source maps to New Relic and still see minified stack traces, there are a few things to check. Using the API is the best way to investigate potential issues, by listing or deleting published source maps.
Release name/ID mismatch
To resolve this, delete the source map that has NULL release name and ID values and re-upload all versions for that URL including those parameters. This will allow multiple versions of source maps for a particular JS URL.
Your mapping file must contain the
Having trouble even generating source maps? Every build system has its own instructions for generating source maps. For more specific details, please see the documentation for your particular tool. Below are source map generation instructions for two popular build systems:
If you need more help, check out these support and learning resources:
- Browse the Explorers Hub to get help from the community and join in discussions.
- Find answers on our sites and learn how to use our support portal.
- Run New Relic Diagnostics, our troubleshooting tool for Linux, Windows, and macOS.
- Review New Relic's data security and licenses documentation.