Skip to content

ref(browser): Use safeSetSpanJSONAttributes in cultureContext integration#20481

Merged
nicohrubec merged 1 commit intodevelopfrom
nh/span-streaming-culturecontextintegration
Apr 24, 2026
Merged

ref(browser): Use safeSetSpanJSONAttributes in cultureContext integration#20481
nicohrubec merged 1 commit intodevelopfrom
nh/span-streaming-culturecontextintegration

Conversation

@nicohrubec
Copy link
Copy Markdown
Member

@nicohrubec nicohrubec commented Apr 24, 2026

Applies the same safeSetSpanJSONAttributes refactor from #20464 to the cultureContext integration's processSegmentSpan hook. This gives us in-place mutation instead of spread-and-reassign and nullish values are skipped (these get dropped during serialization anyways but doesn't hurt to just not assign them in the first place).

@nicohrubec nicohrubec changed the title ref(browser): Use safeSetSpanJSONAttributes in cultureContext integration ref(browser): Use safeSetSpanJSONAttributes in cultureContext integration Apr 24, 2026
@nicohrubec nicohrubec force-pushed the nh/span-streaming-culturecontextintegration branch from c3e0e66 to ea0b3fa Compare April 24, 2026 07:16
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 24, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.96 kB -0.08% -19 B 🔽
@sentry/browser - with treeshaking flags 24.44 kB -0.12% -27 B 🔽
@sentry/browser (incl. Tracing) 43.89 kB -0.06% -23 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 45.53 kB -0.03% -11 B 🔽
@sentry/browser (incl. Tracing, Profiling) 48.84 kB -0.06% -27 B 🔽
@sentry/browser (incl. Tracing, Replay) 83.09 kB -0.04% -26 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 72.59 kB -0.01% -2 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 87.77 kB -0.03% -23 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 100.03 kB -0.02% -19 B 🔽
@sentry/browser (incl. Feedback) 42.78 kB +0.01% +1 B 🔺
@sentry/browser (incl. sendFeedback) 30.64 kB -0.02% -5 B 🔽
@sentry/browser (incl. FeedbackAsync) 35.64 kB +0.01% +2 B 🔺
@sentry/browser (incl. Metrics) 27.25 kB -0.08% -20 B 🔽
@sentry/browser (incl. Logs) 27.38 kB -0.1% -25 B 🔽
@sentry/browser (incl. Metrics & Logs) 28.07 kB -0.07% -19 B 🔽
@sentry/react 27.72 kB -0.05% -12 B 🔽
@sentry/react (incl. Tracing) 46.13 kB -0.02% -9 B 🔽
@sentry/vue 30.81 kB -0.07% -21 B 🔽
@sentry/vue (incl. Tracing) 45.71 kB -0.02% -8 B 🔽
@sentry/svelte 25.98 kB -0.07% -18 B 🔽
CDN Bundle 28.66 kB +0.01% +1 B 🔺
CDN Bundle (incl. Tracing) 46.12 kB -0.04% -14 B 🔽
CDN Bundle (incl. Logs, Metrics) 30.03 kB -0.03% -7 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 47.17 kB -0.02% -8 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 68.99 kB -0.05% -33 B 🔽
CDN Bundle (incl. Tracing, Replay) 83.19 kB -0.01% -6 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 84.22 kB -0.01% -5 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 88.67 kB -0.02% -14 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 89.75 kB -0.01% -6 B 🔽
CDN Bundle - uncompressed 83.91 kB -0.03% -21 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 137.82 kB -0.02% -25 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 88.06 kB -0.03% -21 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 141.23 kB -0.02% -25 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 211.63 kB -0.01% -21 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 255.26 kB -0.01% -25 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 258.66 kB -0.01% -25 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 268.17 kB -0.01% -25 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 271.56 kB -0.01% -25 B 🔽
@sentry/nextjs (client) 48.66 kB -0.02% -9 B 🔽
@sentry/sveltekit (client) 44.33 kB -0.04% -14 B 🔽
@sentry/node-core 58.35 kB +0.02% +9 B 🔺
@sentry/node 175.67 kB +0.01% +12 B 🔺
@sentry/node - without tracing 98.3 kB +0.02% +11 B 🔺
@sentry/aws-serverless 115.33 kB +0.01% +11 B 🔺

View base workflow run

@nicohrubec nicohrubec marked this pull request as ready for review April 24, 2026 07:55
@nicohrubec nicohrubec requested review from chargome and mydea April 24, 2026 07:55
@nicohrubec nicohrubec force-pushed the nh/span-streaming-culturecontextintegration branch from ea0b3fa to fd66a7d Compare April 24, 2026 08:01
@nicohrubec nicohrubec changed the base branch from nh/span-streaming-httpcontextintegration to develop April 24, 2026 08:25
…tion

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec force-pushed the nh/span-streaming-culturecontextintegration branch from fd66a7d to 3f9c2ee Compare April 24, 2026 08:31
@nicohrubec nicohrubec merged commit fdeba11 into develop Apr 24, 2026
184 checks passed
@nicohrubec nicohrubec deleted the nh/span-streaming-culturecontextintegration branch April 24, 2026 08:58
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