Skip to content

feat(v10/core): Accept CollectBehavior shorthand for dataCollection.httpHeaders - #24339

Merged
chargome merged 1 commit into
v10from
http-headers-shorthand-v10
Sep 11, 2026
Merged

feat(v10/core): Accept CollectBehavior shorthand for dataCollection.httpHeaders#24339
chargome merged 1 commit into
v10from
http-headers-shorthand-v10

Conversation

@chargome

Copy link
Copy Markdown
Member

Backport of: #24336

Differences to the original PR

  • packages/core/src/index.ts: dropped the HttpHeadersCollection type export. v10 does not export any of the datacollection types (CollectBehavior, DataCollection, ...) from the core index, so there was no export list to add it to.
  • packages/core/src/utils/data-collection/resolveDataCollectionOptions.ts: resolveHttpHeaders takes the resolved base instead of reading DEFAULTS directly. v10 still has the sendDefaultPii bridge, so omitted directions must fall back to whichever base is in effect, matching the surrounding code.
  • packages/core/src/types/datacollection.ts: ResolvedDataCollection omits 'queryParams' | 'httpHeaders'. v10 already omitted the deprecated queryParams key, and the accompanying todo(v11) comment was updated to match.

@chargome chargome self-assigned this Sep 11, 2026
@chargome
chargome requested a review from s1gr1d September 11, 2026 12:17
@chargome
chargome marked this pull request as ready for review September 11, 2026 12:18
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.84 kB added added
@sentry/browser - with treeshaking flags 26.27 kB added added
@sentry/browser (incl. Tracing) 46.69 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.47 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.44 kB added added
@sentry/browser (incl. Tracing, Replay) 86 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.6 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 90.73 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 103.36 kB added added
@sentry/browser (incl. Feedback) 44.99 kB added added
@sentry/browser (incl. sendFeedback) 32.63 kB added added
@sentry/browser (incl. FeedbackAsync) 37.77 kB added added
@sentry/browser (incl. Metrics) 28.93 kB added added
@sentry/browser (incl. Logs) 29.16 kB added added
@sentry/browser (incl. Metrics & Logs) 29.85 kB added added
@sentry/react 29.63 kB added added
@sentry/react (incl. Tracing) 48.95 kB added added
@sentry/vue 33.25 kB added added
@sentry/vue (incl. Tracing) 48.68 kB added added
@sentry/svelte 27.86 kB added added
CDN Bundle 30.23 kB added added
CDN Bundle (incl. Tracing) 48.66 kB added added
CDN Bundle (incl. Logs, Metrics) 31.81 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 49.98 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 71.15 kB added added
CDN Bundle (incl. Tracing, Replay) 86.23 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.54 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 92.03 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.33 kB added added
CDN Bundle - uncompressed 90.04 kB added added
CDN Bundle (incl. Tracing) - uncompressed 146.85 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.75 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.83 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.71 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 266.28 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 270.24 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.98 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 283.93 kB added added
@sentry/nextjs (client) 51.52 kB added added
@sentry/sveltekit (client) 47.12 kB added added
@sentry/core/server 80.84 kB added added
@sentry/core/browser 67.02 kB added added
@sentry/node-core 63.38 kB added added
@sentry/node 126.08 kB added added
@sentry/node (incl. diagnostics channel injection) 170.18 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B added added
@sentry/node/light 51.53 kB added added
@sentry/node - without tracing 75.06 kB added added
@sentry/aws-serverless 84.33 kB added added
@sentry/cloudflare (withSentry) - minified 202.95 kB added added
@sentry/cloudflare (withSentry) 499.86 kB added added

@chargome
chargome merged commit e2deda0 into v10 Sep 11, 2026
312 of 313 checks passed
@chargome
chargome deleted the http-headers-shorthand-v10 branch September 11, 2026 14:09
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