Now, if you click on the error button to generate an error and check it out from the Kibana APM UI, you will see the minified error stack as per the previous screenshot.
Let’s load our source maps and see the magic! The source maps are generated under the directory $APP-PATH/carfront/build/static/js. Go in there, and you will see three source map files for the three JavaScript files. Run the following commands against the Kibana endpoint of your cluster to upload them to Kibana, ensuring to upload the files with the js.map extension only. Be careful to hit the Kibana endpoint and not the APM endpoint used previously to configure your RUM and APM agents.
Make sure you change the URL, the file name, and other parameters to match your application version, build, and environment. It is also advisable to generate an API Key for authentication if you do not have one already via the API keys screen in Kibana.
Leave a Reply