What is the purpose of `raven.events.Message`


#1

Using the python raven client, there is a captureMessage method that is basically just capture, with the event type of raven.events.Message. When I send a message to sentry it never shows up in the UI at all (or maybe im looking in the wrong place?). Exceptions show up just fine. And if I use captureException with levels of warning/info, those also show up. So how do I see the events.message in the UI? and if I cant, what is the purpose of them?


#2

You should definitely see captureMessage data. Could you give some example code?


#3

I’m having the exact same issue, I can’t see the messages in the Dashboard. I’m using RavenJS and send it like this:

Raven.captureMessage('Creating request to send contacts to API! continuing...', {
  level: 'info' // one of 'info', 'warning', or 'error'
});

I also have an error handler:
Raven
.config(‘https://639bcd7c9afa40a391e29df8ee74d2e3@sentry.io/179464’,
{
release: ‘0.1.53.30’,
dataCallback: data => {

            if (data.culprit) {
                data.culprit = data.culprit.substring(data.culprit.lastIndexOf('/'));
            }

            var stacktrace = data.stacktrace ||
                data.exception &&
                data.exception.values[0].stacktrace;

            if (stacktrace) {
                stacktrace.frames.forEach(function (frame) {
                    frame.filename = frame.filename.substring(frame.filename.lastIndexOf('/'));
                });
            }
        },
        shouldSendCallback: function () {
            if (isDevMode())
                return false;
            else
                return true;
        }
    })
    .install();

export class SentryErrorHandler extends IonicErrorHandler {

    handleError(error) {
        super.handleError(error);

        try {
            Raven.captureException(error.originalError || error);
        }
        catch (e) {
            console.error(e);
        }
    }
}

I need help with this, as I need to debug something from production.

Thanks,


#4

Seems to be working from Stackblitz Ionic, https://stackblitz.com/edit/ionic-1kbb2f?file=pages%2Fhome%2Fhome.ts

but not when running the app after installing through TestFlight.


#5

I got mine working, by enabling the
allowSecretKey: true, in Raven.config and also added the secret access key.
Made a build on TestFlight and it worked and received all logs!