Skip to content

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

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

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

Conversation

@nicohrubec

@nicohrubecnicohrubec commented Apr 24, 2026

Copy link
Copy Markdown
Member

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).

@nicohrubecnicohrubec changed the title ref(browser): Use safeSetSpanJSONAttributes in cultureContext integrationref(browser): Use safeSetSpanJSONAttributes in cultureContext integrationApr 24, 2026
@nicohrubec
nicohrubecforce-pushed the nh/span-streaming-culturecontextintegration branch from c3e0e66 to ea0b3faCompareApril 24, 2026 07:16
@github-actions

github-actionsBot commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser25.96 kB-0.08%-19 B 🔽
@sentry/browser - with treeshaking flags24.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 flags72.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/react27.72 kB-0.05%-12 B 🔽
@sentry/react (incl. Tracing)46.13 kB-0.02%-9 B 🔽
@sentry/vue30.81 kB-0.07%-21 B 🔽
@sentry/vue (incl. Tracing)45.71 kB-0.02%-8 B 🔽
@sentry/svelte25.98 kB-0.07%-18 B 🔽
CDN Bundle28.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 - uncompressed83.91 kB-0.03%-21 B 🔽
CDN Bundle (incl. Tracing) - uncompressed137.82 kB-0.02%-25 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed88.06 kB-0.03%-21 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed141.23 kB-0.02%-25 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed211.63 kB-0.01%-21 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed255.26 kB-0.01%-25 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed258.66 kB-0.01%-25 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed268.17 kB-0.01%-25 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed271.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-core58.35 kB+0.02%+9 B 🔺
@sentry/node175.67 kB+0.01%+12 B 🔺
@sentry/node - without tracing98.3 kB+0.02%+11 B 🔺
@sentry/aws-serverless115.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
nicohrubecforce-pushed the nh/span-streaming-culturecontextintegration branch from ea0b3fa to fd66a7dCompareApril 24, 2026 08:01
@nicohrubec
nicohrubec changed the base branch from nh/span-streaming-httpcontextintegration to developApril 24, 2026 08:25
…tion
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubecforce-pushed the nh/span-streaming-culturecontextintegration branch from fd66a7d to 3f9c2eeCompareApril 24, 2026 08:31
@nicohrubec
nicohrubec merged commit fdeba11 into developApr 24, 2026
184 checks passed
@nicohrubec
nicohrubec deleted the nh/span-streaming-culturecontextintegration branch April 24, 2026 08:58
Sign up for freeto 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

@nicohrubec@mydea