Bugsnag

Integrating SessionStack with BugSnag

Add a SessionStack recording to every BugSnag report.

Add this code anywhere in your app, after the SessionStack and BugSnag scripts have been loaded.

sessionstack('getSessionId', function(sessionId) {
    if (sessionId) {
        Bugsnag.metaData = {
            sessionstack: 'https://app.sessionstack.com/player/#/sessions/' + sessionId,
        };
    }
});