Skip to content

Commit 10f3779

Browse files
committed
fix(node): Skip capturing Hapi Boom responses v8.
1 parent 730c794 commit 10f3779

File tree

1 file changed

+1
-7
lines changed
  • packages/node/src/integrations/tracing/hapi

1 file changed

+1
-7
lines changed

packages/node/src/integrations/tracing/hapi/index.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ const _hapiIntegration = (() => {
3838
*/
3939
export const hapiIntegration = defineIntegration(_hapiIntegration);
4040

41-
function isBoomObject(response: ResponseObject | Boom): response is Boom {
42-
return response && (response as Boom).isBoom !== undefined;
43-
}
44-
4541
function 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
});

0 commit comments

Comments
 (0)