Skip to content

feat(browser): Add ingest_settings to v2 log envelope payload#20453

Draft
nicohrubec wants to merge 6 commits intodevelopfrom
nh/span-streaming-ingest-settings-logs
Draft

feat(browser): Add ingest_settings to v2 log envelope payload#20453
nicohrubec wants to merge 6 commits intodevelopfrom
nh/span-streaming-ingest-settings-logs

Conversation

@nicohrubec
Copy link
Copy Markdown
Member

@nicohrubec nicohrubec commented Apr 22, 2026

Adds version: 2 and ingest_settings to the log envelope payload so Relay can infer the end-user IP address and User-Agent from the incoming request (link to spec). This is only emitted by the browser SDK.

Both settings are currently gated behind sendDefaultPii (modeled after how event.sdk.settings.infer_ip works today, but maybe we should confirm this).

We'll wait on getsentry/relay#5869 to be implemented before sending this. Also maybe we need a changelog entry for this one since in the past the behavior was to always infer IP and user agent data for logs so this changes behavior.

Closes #20277

@nicohrubec nicohrubec changed the title feat(browser): Add ingest_settings to log envelope payload feat(browser): Add ingest_settings to v2 log envelope payload Apr 22, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 22, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.04 kB +0.65% +166 B 🔺
@sentry/browser - with treeshaking flags 24.52 kB +0.69% +166 B 🔺
@sentry/browser (incl. Tracing) 43.84 kB +0.09% +37 B 🔺
@sentry/browser (incl. Tracing + Span Streaming) 45.58 kB +0.18% +80 B 🔺
@sentry/browser (incl. Tracing, Profiling) 48.81 kB +0.17% +82 B 🔺
@sentry/browser (incl. Tracing, Replay) 83.06 kB +0.1% +82 B 🔺
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 72.57 kB +0.11% +75 B 🔺
@sentry/browser (incl. Tracing, Replay with Canvas) 87.74 kB +0.09% +71 B 🔺
@sentry/browser (incl. Tracing, Replay, Feedback) 100.04 kB +0.12% +113 B 🔺
@sentry/browser (incl. Feedback) 42.77 kB +0.17% +72 B 🔺
@sentry/browser (incl. sendFeedback) 30.71 kB +0.54% +163 B 🔺
@sentry/browser (incl. FeedbackAsync) 35.63 kB +0.23% +79 B 🔺
@sentry/browser (incl. Metrics) 27.32 kB +0.56% +151 B 🔺
@sentry/browser (incl. Logs) 27.46 kB +0.64% +172 B 🔺
@sentry/browser (incl. Metrics & Logs) 28.14 kB +0.57% +158 B 🔺
@sentry/react 27.76 kB +0.52% +142 B 🔺
@sentry/react (incl. Tracing) 46.1 kB +0.13% +57 B 🔺
@sentry/vue 30.88 kB +0.55% +168 B 🔺
@sentry/vue (incl. Tracing) 45.68 kB +0.13% +57 B 🔺
@sentry/svelte 26.07 kB +0.67% +172 B 🔺
CDN Bundle 28.65 kB +0.27% +75 B 🔺
CDN Bundle (incl. Tracing) 46.13 kB +0.12% +55 B 🔺
CDN Bundle (incl. Logs, Metrics) 30.03 kB +0.24% +71 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 47.18 kB +0.14% +63 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 68.95 kB +0.05% +29 B 🔺
CDN Bundle (incl. Tracing, Replay) 83.17 kB +0.05% +38 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 84.21 kB +0.06% +44 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 88.68 kB +0.09% +72 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 89.76 kB +0.08% +68 B 🔺
CDN Bundle - uncompressed 83.74 kB +0.19% +154 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 137.78 kB +0.12% +161 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 87.89 kB +0.18% +154 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 141.19 kB +0.12% +161 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 211.44 kB +0.07% +132 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 255.19 kB +0.06% +132 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 258.59 kB +0.06% +132 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 268.11 kB +0.05% +132 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 271.49 kB +0.05% +132 B 🔺
@sentry/nextjs (client) 48.63 kB +0.11% +50 B 🔺
@sentry/sveltekit (client) 44.28 kB +0.15% +66 B 🔺
@sentry/node-core 58.52 kB +0.3% +175 B 🔺
@sentry/node 175.83 kB +0.11% +180 B 🔺
@sentry/node - without tracing 98.47 kB +0.19% +179 B 🔺
@sentry/aws-serverless 115.49 kB +0.15% +166 B 🔺

View base workflow run

@nicohrubec nicohrubec requested a review from chargome April 22, 2026 16:47
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.

Add ingest_settings property on log envelope container to infer IP addresses

1 participant