feat(core, node): portable Connect integration#20882
Conversation
Platform-portable Connect tracing integration in `@sentry/core` (`patchConnectModule`, `setupConnectErrorHandler`), similar to portable Express integration, and rewire the Node SDK's Connect integration to call into it through the otel InstrumentationBase class. Remove OTel-specific span attribute fix-up. Spans created with correct origin (`auto.http.connect`) and op directly in the middleware.
051bd5b to
93b0b34
Compare
Platform-portable Connect tracing integration in `@sentry/core` (`patchConnectModule`, `setupConnectErrorHandler`), similar to portable Express integration, and rewire the Node SDK's Connect integration to call into it through the otel InstrumentationBase class. Remove OTel-specific span attribute fix-up. Spans created with correct origin (`auto.http.connect`) and op directly in the middleware.
93b0b34 to
eebfaa1
Compare
size-limit report 📦
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit eebfaa1. Configure here.
| // ['/api/', '/users', '/:id'] => '/api/users/:id' | ||
| function generateRoute(req: ConnectRequest): string { | ||
| const layers = getLayers(req); | ||
| /* v8 ignore start */ |
There was a problem hiding this comment.
Missing v8 ignore end suppresses file coverage
Low Severity
Two /* v8 ignore start */ directives (lines 128 and 227) have no matching /* v8 ignore end */. Since v8 coverage directives are line-based, the first one at line 128 causes the entire remainder of the file — including patchMiddleware, patchConnectApp, patchConnectModule, connectErrorMiddleware, and setupConnectErrorHandler — to be excluded from coverage reports. This silently hides untested code paths. These likely should be /* v8 ignore next */ for single-line guards instead.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit eebfaa1. Configure here.


Platform-portable Connect tracing integration in
@sentry/core(patchConnectModule,setupConnectErrorHandler), similar to portable Express integration, and rewire the Node SDK's Connect integration to call into it through the otel InstrumentationBase class.Remove OTel-specific span attribute fix-up. Spans created with correct origin (
auto.http.connect) and op directly in the middleware.