-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser": "^4.6.4" -
@sentry/core": "4.6.4" -
@sentry/types": "4.5.3" -
@sentry/utils": "4.6.4"
Version:
4.6.4
Description
- We was using
Raven.jsclient and it was working, But when we decided to upgrade to newSentryofficial SDK for angular2@sentry/browser, We noticed strange behavior afterSentrylog error bycaptureExceptionreturnevent_id&Sentry.lastEventId()neither matched nor exists withevent_idthat logged onSentry 9.0.0, This happened when passerrortocaptureException, But i works withcaptureExceptionand when passnew Error(msg), What i expect is whencaptureMessageerror with stackTrace makeSentryclient behave wrong when generateevent_id.
- After Sentry captureException
Sentry.init({
dsn: 'our_dsn',
whitelistUrls: [some_pattern],
});
handleError(error) {
const event_id = Sentry.captureException(error); // wrong/not matched event_id
console.log(event_id); // 2a4f76154e1446f8baa4cf5e38ed2d7f
console.log(Sentry.lastEventId()); // 2a4f76154e1446f8baa4cf5e38ed2d7f
// But expected & what is logged in server is `96474888a8154c409c0dcbea29d792ad`
// Raven.captureException(error); // Np correct & matched event_id
// Sentry.captureException(new Error(error.stack)); // Np correct & matched event_id, but missing frames, extra info on server..
// Sentry.captureMessage(error.message); // Np correct & matched event_id
}
Metadata
Metadata
Assignees
Labels
No labels