Description
Problem Statement
We're looking into switching from the third-party hapi-sentry package to Sentry's built-in Hapi support, mainly to benefit from the added tracing support. However, the built-in Hapi support has what seems to be a potentially unwanted feature: every Hapi Boom response (i.e., every HTTP 4xx or 5xx response) is captured as a Sentry exception.
Is this intended? I would expect that Sentry exceptions are for things that are very likely programming errors, not conditions like bad or unauthorized requests (HTTP 4xx) that are often outside of the application's control.
Solution Brainstorm
- Add an option to
Integrations.Hapi
to configure the error plugin and tracing plugin separately (so we could continue to use the third-party hapi-sentry). - More directly expose / export
hapiErrorPlugin
andhapiTracingPlugin
so that I can add one or the other or both to my Hapi server myself (and can then pick hapi-sentry overhapiErrorPlugin
). - Add an option to
Integrations.Hapi
to control whether the error plugin captures Boom replies as exceptions. - Don't capture Boom replies by default.
- Some combination of the above.
Metadata
Metadata
Assignees
Type
Projects
Status
No status