CoffeeScript

In order to use raven-node with coffee-script or another library which overwrites Error.prepareStackTrace you might run into the exception “Traceback does not support Error.prepareStackTrace being defined already.”

In order to not have raven-node (and the underlying raw stack trace library) require Traceback you can pass your own stackFunction in the options. For example:

Copied
client = new raven.Client('https://examplePublicKey@o0.ingest.sentry.io/0', {
    stackFunction: {{ Your stack function }}
});

So for example:

Copied
client = new raven.Client('https://examplePublicKey@o0.ingest.sentry.io/0', {
    stackFunction: Error.prepareStackTrace
});
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").