New Relic
View LogRocket sessions from New Relic APM
Add the LogRocket session URL as a header to your API calls which have New Relic APM installed:
var recordingURL;
LogRocket.getSessionURL(function(sessionURL) {
recordingURL = sessionURL;
});
// example API call
fetch(someAPICallhere, {
headers: {
// other headers
'X-LogRocket-URL': recordingURL,
},
});New Relic Browser
You can add the LogRocket URL to PageView events by using the setCustomAttribute method on the New Relic Browser SDK:
logrocket.getSessionURL(sessionURL => {
newrelic.setCustomAttribute('logrocket_url', sessionURL);
});You can then query those PageView events using New Relic Insights and quickly find the relevant LogRocket session.
Add New Relic APM link within LogRocket
This integration is now deprecated
