Sentry for Hapi

Learn how to set up Sentry in your Hapi app on Node.js, Bun, or Deno.

Hapi doesn't need its own Sentry SDK. Set up Sentry for the runtime your app runs on, and the SDK instruments Hapi automatically: hapiIntegration registers an error handler when your server starts, and creates spans for incoming requests when tracing is enabled.

To configure the integration, see the Hapi integration.

Was this helpful?
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").