Skip to content

ref(aws-serverless): Remove dead vendored aws-sdk OTel instrumentation - #22825

Merged
andreiborza merged 1 commit into
developfrom
ab/js-3208-remove-dead-aws-sdk-otel
Jul 29, 2026
Merged

ref(aws-serverless): Remove dead vendored aws-sdk OTel instrumentation#22825
andreiborza merged 1 commit into
developfrom
ab/js-3208-remove-dead-aws-sdk-otel

Conversation

@andreiborza

Copy link
Copy Markdown
Member

What

Remove the dead vendored OpenTelemetry aws-sdk instrumentation from @sentry/aws-serverless.

  • Delete the entire src/integration/aws/ tree (the AwsInstrumentation InstrumentationBase and its vendored service extensions).
  • Drop the now-unused @opentelemetry/instrumentation and @opentelemetry/api dependencies, plus the stale @opentelemetry/api rollup external.

Why

aws-sdk spans already come from the channel-based awsIntegration() in @sentry/server-utils. The vendored class was never instantiated, so this is pure dead-code removal with no behavior change.

Closes: #22775

The vendored OpenTelemetry `AwsInstrumentation` and its service extensions are
dead code: aws-sdk spans come from the channel-based `awsIntegration()` in
`@sentry/server-utils`, and nothing instantiated the vendored class. Remove the
whole tree and the now-unused `@opentelemetry/instrumentation` and
`@opentelemetry/api` dependencies.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Jul 29, 2026

Copy link
Copy Markdown

JS-3208

@andreiborza

andreiborza commented Jul 29, 2026

Copy link
Copy Markdown
Member Author

batman begin

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 39e8120. Configure here.

@andreiborza
andreiborza marked this pull request as ready for review July 29, 2026 13:12
@andreiborza
andreiborza requested a review from a team as a code owner July 29, 2026 13:12
@andreiborza
andreiborza requested review from isaacs and mydea and removed request for a team July 29, 2026 13:12
@andreiborza
andreiborza enabled auto-merge (squash) July 29, 2026 13:12
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.82 kB +0.01% +2 B 🔺
@sentry/browser - with treeshaking flags 28.02 kB +0.02% +3 B 🔺
@sentry/browser (incl. Tracing) 47.1 kB +0.01% +2 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 47.1 kB +0.01% +3 B 🔺
@sentry/browser (incl. Tracing, Profiling) 51.81 kB +0.01% +3 B 🔺
@sentry/browser (incl. Tracing, Replay) 86.4 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.84 kB +0.01% +2 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 91.13 kB +0.01% +2 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 103.76 kB -0.01% -1 B 🔽
@sentry/browser (incl. Feedback) 47.13 kB -0.01% -1 B 🔽
@sentry/browser (incl. sendFeedback) 34.66 kB - -
@sentry/browser (incl. FeedbackAsync) 39.76 kB -0.01% -2 B 🔽
@sentry/browser (incl. Metrics) 30.89 kB -0.01% -3 B 🔽
@sentry/browser (incl. Logs) 31.12 kB -0.01% -2 B 🔽
@sentry/browser (incl. Metrics & Logs) 31.8 kB +0.02% +4 B 🔺
@sentry/react 31.61 kB +0.03% +8 B 🔺
@sentry/react (incl. Tracing) 49.33 kB +0.01% +3 B 🔺
@sentry/vue 34.74 kB -0.01% -3 B 🔽
@sentry/vue (incl. Tracing) 49.05 kB -0.01% -2 B 🔽
@sentry/svelte 29.85 kB -0.02% -4 B 🔽
CDN Bundle 31.86 kB -0.01% -3 B 🔽
CDN Bundle (incl. Tracing) 47.45 kB -0.02% -6 B 🔽
CDN Bundle (incl. Logs, Metrics) 33.41 kB -0.03% -8 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 48.82 kB -0.02% -8 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 72.78 kB -0.01% -6 B 🔽
CDN Bundle (incl. Tracing, Replay) 85.09 kB -0.01% -4 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.38 kB -0.01% -7 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 90.85 kB -0.01% -3 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.16 kB -0.01% -8 B 🔽
CDN Bundle - uncompressed 95.06 kB +0.03% +26 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 142.28 kB +0.02% +28 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.78 kB +0.03% +26 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.26 kB +0.02% +28 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.53 kB +0.02% +26 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 261.54 kB +0.02% +28 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 265.5 kB +0.02% +28 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.24 kB +0.02% +28 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.2 kB +0.02% +28 B 🔺
@sentry/nextjs (client) 51.92 kB +0.01% +1 B 🔺
@sentry/sveltekit (client) 47.51 kB +0.01% +3 B 🔺
@sentry/core/server 79.59 kB -0.01% -2 B 🔽
@sentry/core/browser 51.6 kB - -
@sentry/node 121.69 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B - -
@sentry/node - without tracing 85.26 kB +0.03% +25 B 🔺
@sentry/aws-serverless 93.48 kB +0.03% +24 B 🔺
@sentry/cloudflare (withSentry) - minified 197.59 kB +0.03% +40 B 🔺
@sentry/cloudflare (withSentry) 485.72 kB +0.01% +32 B 🔺

View base workflow run

@andreiborza
andreiborza merged commit 4d4a0ec into develop Jul 29, 2026
51 checks passed
@andreiborza
andreiborza deleted the ab/js-3208-remove-dead-aws-sdk-otel branch July 29, 2026 13:23
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.

Remove dead vendored aws-sdk OTel instrumentation from @sentry/aws-serverless

2 participants