Closed bago2k4 closed 4 years ago
@bago2k4 I don't get anything in Sentry on staging after oc.web.lib.sentry.capture_error_with_message("My first error", "My error message");
@belucid good catch. I fixed it.
@bago2k4 I still don't get anything in Sentry on staging after oc.web.lib.sentry.capture_error_with_message("My first error", "My error message");
@belucid now it should work. I had to add a PR for infra since we were limiting the errors to those that happen on scripts loaded under staging.carrot.io
but our js code is loaded form the CDN.
You can find the link in the description
@bago2k4 I get a Sentry Logger [Error]: Error while sending event: [object Response]
when running oc.web.lib.sentry.capture_error_with_message("My first error", "My error message");
on staging now.
@belucid fixed as per the discussion on Slack
NB: this is urgent only because right now in Sentry we get only the errors and the stack traces, no info about OS, browser and deploy release version.
Review with:
Sometimes Sentry doesn't add the OS and browser info. Also
oc.web.lib.sentry/capture-error-with-context!
andoc.web.lib.sentry/capture-error-with-message
are broken since they don't catch the error they create, so we get a report but w/o all the needed details and also it's not handled.To test:
oc.web.lib.sentry.test_sentry()
ReferenceError: errorThrowingCode is not defined
)oc.web.lib.sentry.capture_error_with_message("My first error", "My error message");