Raygun

Integrating SessionStack with Raygun

Add a SessionStack recording to every Raygun exception report.

Add this code anywhere in your app, after SessionStack and Raygun have been loaded.

SessionStack.getSessionId(function(sessionId) {
    var sessionURL;
    if (sessionId) {
        sessionURL = 'https://app.sessionstack.com/player/#/sessions/' + sessionId;
        // V2 of raygun library
  			rg4js('withCustomData', { sessionstack: sessionURL });

        // V1 of raygun library
        Raygun.withCustomData({ sessionstack: sessionURL });
    }
});