You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
initialize Panopticon at the entry point of your app
importPanopticonfrom"pan-opt";Panopticon.init(dsn)// dsn: your dsn issued from panopticon.gq
To set context information or send manual errors, use the exported functions of pan-opt.
importPanopticonfrom"pan-opt";// Set user information, as well as tags and further extrasPanopticon.setTag('custom','Tag');Panopticon.setTag('foo','bar');Panopticon.setUser('Warden');// Capture exceptions, send manual errorstry{thrownewError("Maybe I'll be caught by try-catch");}catch(err){Panopticon.send(err);}