Skip to content

feat(aws-serverless)!: Remove unused startTrace option and tryPatchHandler - #23219

Merged
nicohrubec merged 1 commit into
developfrom
feat/aws-serverless-remove-unused-options
Aug 10, 2026
Merged

feat(aws-serverless)!: Remove unused startTrace option and tryPatchHandler#23219
nicohrubec merged 1 commit into
developfrom
feat/aws-serverless-remove-unused-options

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Aug 10, 2026

Copy link
Copy Markdown
Member

Removes two deprecated, unused parts of the @sentry/aws-serverless public API:

  • The startTrace option on wrapHandler — it had no effect (to disable tracing, set tracesSampleRate to 0).
  • The tryPatchHandler function.

Both are already documented in docs/migration/v11-end-state.md.

Fixes #22252

…ndler

Remove the deprecated `startTrace` wrapper option and the `tryPatchHandler`
function from `@sentry/aws-serverless`. Both were no longer used and only
kept for back-compat.

Fixes #22252

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubec marked this pull request as ready for review August 10, 2026 10:37
@nicohrubec
nicohrubec requested a review from a team as a code owner August 10, 2026 10:37
@nicohrubec
nicohrubec requested review from JPeer264, andreiborza, msonnb and mydea and removed request for a team and mydea August 10, 2026 10:37
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.35 kB - -
@sentry/browser - with treeshaking flags 28.52 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.85 kB - -
@sentry/browser (incl. Tracing) 48.61 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.62 kB - -
@sentry/browser (incl. Tracing, Profiling) 53.46 kB - -
@sentry/browser (incl. Tracing, Replay) 88.04 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.45 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 92.77 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 105.45 kB - -
@sentry/browser (incl. Feedback) 47.69 kB - -
@sentry/browser (incl. sendFeedback) 35.18 kB - -
@sentry/browser (incl. FeedbackAsync) 40.33 kB - -
@sentry/browser (incl. Metrics) 31.43 kB - -
@sentry/browser (incl. Logs) 31.66 kB - -
@sentry/browser (incl. Metrics & Logs) 32.34 kB - -
@sentry/react 32.14 kB - -
@sentry/react (incl. Tracing) 50.82 kB - -
@sentry/vue 35.45 kB - -
@sentry/vue (incl. Tracing) 50.59 kB - -
@sentry/svelte 30.38 kB - -
CDN Bundle 32.32 kB - -
CDN Bundle (incl. Tracing) 49.59 kB - -
CDN Bundle (incl. Logs, Metrics) 33.84 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 50.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.38 kB - -
CDN Bundle (incl. Tracing, Replay) 87.12 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.4 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 92.93 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.18 kB - -
CDN Bundle - uncompressed 95.83 kB - -
CDN Bundle (incl. Tracing) - uncompressed 148.8 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.42 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 152.78 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 229.34 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 268.05 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 281.75 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 285.7 kB - -
@sentry/nextjs (client) 53.4 kB - -
@sentry/sveltekit (client) 49.03 kB - -
@sentry/core/server 65.68 kB - -
@sentry/core/browser 52 kB - -
@sentry/node 118.69 kB -0.01% -1 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 82.82 kB -0.01% -1 B 🔽
@sentry/aws-serverless 92.12 kB +0.01% +1 B 🔺
@sentry/cloudflare (withSentry) - minified 214.85 kB - -
@sentry/cloudflare (withSentry) 530.47 kB - -

View base workflow run

@msonnb msonnb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

finally 🎉

@nicohrubec
nicohrubec enabled auto-merge (squash) August 10, 2026 10:43
@nicohrubec
nicohrubec merged commit bf60640 into develop Aug 10, 2026
51 checks passed
@nicohrubec
nicohrubec deleted the feat/aws-serverless-remove-unused-options branch August 10, 2026 10:45
JPeer264 pushed a commit that referenced this pull request Aug 12, 2026
…hHandler` (#23219)

Removes two deprecated, unused parts of the `@sentry/aws-serverless`
public API:

- The `startTrace` option on `wrapHandler` — it had no effect (to
disable tracing, set `tracesSampleRate` to `0`).
- The `tryPatchHandler` function.

Both are already documented in `docs/migration/v11-end-state.md`.

Fixes #22252

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

AWS Lambda: remove no-longer-used options & deprecated function

3 participants