Rollbar
Unlock advanced error insights in Rollbar with Zipy session URLs for contextual debugging and efficient issue resolution.

const getCurrentZipySessionURL = async () => {
return await new Promise(function(resolve, reject) {
let i = 0;
const _interval = setInterval(() => {
let zipySessionUrl = (window)?.zipy?.getCurrentSessionURL();
if(zipySessionUrl){
resolve(zipySessionUrl);
clearInterval(_interval);
}
else{
i++;
if(i >= 4){
reject("Some problem occured while loading zipy.");
clearInterval(_interval);
}
}
},1500);
});
}
getCurrentZipySessionURL()
.then(zipySessionUrl => {
Rollbar.configure({
transform: function (obj) {
obj.zipySessionUrl = zipySessionUrl;
},
});
})
.catch((e) => {
console.log(e);
});
Last updated