File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
packages/node/src/integrations/tracing/hapi Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ const _hapiIntegration = (() => {
3838 */
3939export const hapiIntegration = defineIntegration ( _hapiIntegration ) ;
4040
41- function isBoomObject ( response : ResponseObject | Boom ) : response is Boom {
42- return response && ( response as Boom ) . isBoom !== undefined ;
43- }
44-
4541function isErrorEvent ( event : RequestEvent ) : event is RequestEvent {
4642 return event && ( event as RequestEvent ) . error !== undefined ;
4743}
@@ -76,9 +72,7 @@ export const hapiErrorPlugin = {
7672 logger . warn ( 'Isolation scope is still the default isolation scope - skipping setting transactionName' ) ;
7773 }
7874
79- if ( request . response && isBoomObject ( request . response ) ) {
80- sendErrorToSentry ( request . response ) ;
81- } else if ( isErrorEvent ( event ) ) {
75+ if ( isErrorEvent ( event ) ) {
8276 sendErrorToSentry ( event . error ) ;
8377 }
8478 } ) ;
You can’t perform that action at this time.
0 commit comments