Skip to content

ref(aws-serverless): Vendor aws-sdk instrumentation#20988

Open
nicohrubec wants to merge 8 commits into
developfrom
nh/vendor-aws-sdk-instrumentation-v2
Open

ref(aws-serverless): Vendor aws-sdk instrumentation#20988
nicohrubec wants to merge 8 commits into
developfrom
nh/vendor-aws-sdk-instrumentation-v2

Conversation

@nicohrubec
Copy link
Copy Markdown
Member

Vendors @opentelemetry/instrumentation-aws-sdk into the SDK with no logic changes. TokenUsage and ConverseStreamOutput types from @aws-sdk/client-bedrock-runtime are inlined as simplified interfaces to avoid requiring the package as a dependency.

Closes #20514

nicohrubec and others added 6 commits May 18, 2026 15:02
Closes #20514

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

github-actions Bot commented May 18, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.92 kB - -
@sentry/browser - with treeshaking flags 25.35 kB - -
@sentry/browser (incl. Tracing) 44.91 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.16 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.91 kB - -
@sentry/browser (incl. Tracing, Replay) 84.54 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 74.04 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.25 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 101.87 kB - -
@sentry/browser (incl. Feedback) 44.1 kB - -
@sentry/browser (incl. sendFeedback) 31.73 kB - -
@sentry/browser (incl. FeedbackAsync) 36.84 kB - -
@sentry/browser (incl. Metrics) 28.01 kB - -
@sentry/browser (incl. Logs) 28.15 kB - -
@sentry/browser (incl. Metrics & Logs) 28.84 kB - -
@sentry/react 28.66 kB - -
@sentry/react (incl. Tracing) 47.16 kB - -
@sentry/vue 31.85 kB - -
@sentry/vue (incl. Tracing) 46.78 kB - -
@sentry/svelte 26.94 kB - -
CDN Bundle 29.34 kB - -
CDN Bundle (incl. Tracing) 47.47 kB - -
CDN Bundle (incl. Logs, Metrics) 30.71 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.59 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.03 kB - -
CDN Bundle (incl. Tracing, Replay) 84.94 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.8 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 91.88 kB - -
CDN Bundle - uncompressed 86.46 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.93 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 90.66 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.4 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 215.38 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.71 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 278.85 kB - -
@sentry/nextjs (client) 49.66 kB - -
@sentry/sveltekit (client) 45.4 kB - -
@sentry/core/server 75.75 kB - -
@sentry/core/browser 62.52 kB - -
@sentry/node-core 62.22 kB +0.01% +1 B 🔺
@sentry/node 166.74 kB +0.01% +1 B 🔺
@sentry/node - without tracing 74.66 kB - -
@sentry/aws-serverless 86.86 kB -20.77% -22.77 kB 🔽
@sentry/cloudflare (withSentry) - minified 171.52 kB - -
@sentry/cloudflare (withSentry) 429.62 kB - -

View base workflow run

Previously a transitive dependency of @opentelemetry/instrumentation-aws-sdk,
now needed directly by the vendored code.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
},
"dependencies": {
"@opentelemetry/api": "^1.9.1",
"@opentelemetry/core": "^2.6.1",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New dependency @opentelemetry/core added as bundle-increasing change

Low Severity

A new direct dependency @opentelemetry/core (^2.6.1) was added to package.json. Previously this package was only a transitive dependency pulled in by @opentelemetry/instrumentation-aws-sdk. Now that the instrumentation is vendored, @opentelemetry/core is explicitly required because the vendored code imports hrTime, suppressTracing, hrTimeDuration, and hrTimeToMilliseconds from it. This may increase the bundle size for the aws-serverless package. Flagging per the rule about large bundle size increases — this is likely unavoidable but worth noting.

Fix in Cursor Fix in Web

Triggered by project rule: PR Review Guidelines for Cursor Bot

Reviewed by Cursor Bugbot for commit d98ceae. Configure here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the size check seems to disagree

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

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit ffc25e2. Configure here.

@nicohrubec nicohrubec marked this pull request as ready for review May 19, 2026 11:50
@nicohrubec nicohrubec requested a review from a team as a code owner May 19, 2026 11:50
Comment thread packages/aws-serverless/src/integration/aws/vendored/aws-sdk.ts
@aldenquimby
Copy link
Copy Markdown
Contributor

@nicohrubec does this close #19237 ?

@nicohrubec
Copy link
Copy Markdown
Member Author

@aldenquimby it does not

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.

2 participants