Const
Adds Sentry tracing instrumentation for Hapi.
If you also want to capture errors, you need to call setupHapiErrorHandler(server) after you set up your server.
setupHapiErrorHandler(server)
For more information, see the hapi documentation.
const Sentry = require('@sentry/node');Sentry.init({ integrations: [Sentry.hapiIntegration()],}) Copy
const Sentry = require('@sentry/node');Sentry.init({ integrations: [Sentry.hapiIntegration()],})
Adds Sentry tracing instrumentation for Hapi.
If you also want to capture errors, you need to call
setupHapiErrorHandler(server)after you set up your server.For more information, see the hapi documentation.