Skip to content

Commit dc3df37

Browse files
committed
always run event processor in http integration
to accomodate remix
1 parent ce26a99 commit dc3df37

File tree

1 file changed

+3
-4
lines changed
  • packages/node-core/src/integrations/http

1 file changed

+3
-4
lines changed

packages/node-core/src/integrations/http/index.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,9 @@ export const httpIntegration = defineIntegration((options: HttpOptions = {}) =>
169169
instrumentSentryHttp(httpInstrumentationOptions);
170170
},
171171
processEvent(event) {
172-
if (enabledServerSpans) {
173-
return serverSpans.processEvent(event);
174-
}
175-
return event;
172+
// Note: We always run this, even if spans are disabled
173+
// The reason being that e.g. the remix integration disables span creation here but still wants to use the ignore status codes option
174+
return serverSpans.processEvent(event);
176175
},
177176
};
178177
});

0 commit comments

Comments
 (0)