Skip to content

ref(node): Vendor @opentelemetry/instrumentation-pg#21102

Merged
nicohrubec merged 6 commits into
developfrom
vendor-pg-instrumentation
May 22, 2026
Merged

ref(node): Vendor @opentelemetry/instrumentation-pg#21102
nicohrubec merged 6 commits into
developfrom
vendor-pg-instrumentation

Conversation

@nicohrubec
Copy link
Copy Markdown
Member

@nicohrubec nicohrubec commented May 21, 2026

Vendors @opentelemetry/instrumentation-pg@0.70.0 into the SDK with no logic changes. Types from pg and pg-pool are inlined as simplified interfaces to avoid requiring these packages as dependencies.

Adds "node" to the types field in the generic-ts3.8, generic-ts5.0 and remix-hydrogen E2E test tsconfigs and adds @types/node as a devDependency in remix-hydrogen. These tests previously relied on @types/node being loaded transitively via @opentelemetry/instrumentation-pg@types/pg (which has /// <reference types="node" />). Now that this path no longer exists types: [] in the tsconfig results in these types not being available during the app build, because they get explicitly filtered.

Closes #20158

nicohrubec and others added 3 commits May 21, 2026 17:45
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
PgClient now matches the original pgTypes.Client shape (host, port,
user, database, ssl, connection, etc.) instead of an invented shape.
Revert connect patch to pass `this` directly as the original does.
PgPool now includes all original Pool fields.
QueryResult/QueryArrayResult keep oid, FieldDef, generics from originals.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.32 kB - -
@sentry/browser - with treeshaking flags 25.74 kB - -
@sentry/browser (incl. Tracing) 45.31 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.55 kB - -
@sentry/browser (incl. Tracing, Profiling) 50.3 kB - -
@sentry/browser (incl. Tracing, Replay) 84.92 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.43 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.64 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.24 kB - -
@sentry/browser (incl. Feedback) 44.51 kB - -
@sentry/browser (incl. sendFeedback) 32.13 kB - -
@sentry/browser (incl. FeedbackAsync) 37.25 kB - -
@sentry/browser (incl. Metrics) 28.41 kB - -
@sentry/browser (incl. Logs) 28.64 kB - -
@sentry/browser (incl. Metrics & Logs) 29.33 kB - -
@sentry/react 29.05 kB - -
@sentry/react (incl. Tracing) 47.55 kB - -
@sentry/vue 32.24 kB - -
@sentry/vue (incl. Tracing) 47.17 kB - -
@sentry/svelte 27.35 kB - -
CDN Bundle 29.73 kB - -
CDN Bundle (incl. Tracing) 47.84 kB - -
CDN Bundle (incl. Logs, Metrics) 31.21 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.09 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.53 kB - -
CDN Bundle (incl. Tracing, Replay) 85.34 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.5 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.37 kB - -
CDN Bundle - uncompressed 87.8 kB - -
CDN Bundle (incl. Tracing) - uncompressed 144.29 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 92.29 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 148.05 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 217.02 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 263.07 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.81 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 276.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 280.5 kB - -
@sentry/nextjs (client) 50.03 kB - -
@sentry/sveltekit (client) 45.8 kB - -
@sentry/core/server 76.41 kB - -
@sentry/core/browser 63.16 kB - -
@sentry/node-core 62.59 kB - -
@sentry/node 145.13 kB -10.79% -17.55 kB 🔽
@sentry/node - without tracing 75.02 kB - -
@sentry/aws-serverless 87.24 kB -0.01% -1 B 🔽
@sentry/cloudflare (withSentry) - minified 173.13 kB - -
@sentry/cloudflare (withSentry) 432.43 kB - -

View base workflow run

With types:[], @types/node was only loaded because @types/pg
(transitive dep of instrumentation-pg) had `/// <reference types="node" />`.
Removing instrumentation-pg broke that chain. Explicitly including
"node" in types reflects what any real Node.js consumer would have.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec force-pushed the vendor-pg-instrumentation branch from fb57f87 to 8df2e90 Compare May 21, 2026 16:43
nicohrubec and others added 2 commits May 21, 2026 21:43
The app uses `process.env.NODE_ENV` directly, which requires
@types/node. Previously resolved transitively via instrumentation-pg
→ @types/pg → @types/node.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec marked this pull request as ready for review May 22, 2026 06:46
@nicohrubec nicohrubec requested a review from a team as a code owner May 22, 2026 06:46
@nicohrubec nicohrubec requested review from JPeer264 and andreiborza and removed request for a team May 22, 2026 06:46
@nicohrubec nicohrubec merged commit 2516805 into develop May 22, 2026
262 of 264 checks passed
@nicohrubec nicohrubec deleted the vendor-pg-instrumentation branch May 22, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Vendor @opentelemetry/instrumentation-pg

2 participants