Slide 12
Slide 12 text
// initialize framework
Sentry.init({
dsn: "https://...",
beforeSend(event, hint) {
// show user inquiry popup on exceptions
if (event.exception) {
Sentry.showReportDialog({
eventId: event.event_id, lang: 'en' });
}
return event;
},
});
// Sample code on a 404 page
Sentry.captureException("Page missing: location: "
+ window.location.href);
CC BY-NC-SA 4.0 | Sentry in Aktion: Wie wäre es, wenn wir nur Fehlermeldungen protokollieren würden? | März 2022 | Alexander Schwartz 12
Sentry: Integrationen, die Fehler einsammeln
Integration für Plain Old JavaScript über CDN: