const fastify = require('fastify');
const sentry = require('@immobiliarelabs/fastify-sentry');
const app = fastify();
app.register(sentry, {
allowedStatusCodes: [404]
});
const sentry = require('@immobiliarelabs/fastify-sentry');
const app = fastify();
app.register(sentry, {
shouldHandleError(error, request, reply) {
if (error.statusCode === 404) {
return false
}
return true
}
});
const fastify = require('fastify');
const sentry = require('@immobiliarelabs/fastify-sentry');
const app = fastify();
app.register(sentry, {
onErrorFactory({ allowedStatusCodes }) {
...
}
});
const fastify = require('fastify');
const sentry = require('@immobiliarelabs/fastify-sentry');
const app = fastify();
app.register(sentry, {
setErrorHandler: false
});
app.setErrorHandler(function (error, request, reply) {
...
})