Skip to content

ref(core): Constrain SdkProcessingMetadata to known keys - #15577

Closed
AbhiPrasad wants to merge 2 commits into
developfrom
abhi-constrain-SdkProcessingMetadata
Closed

ref(core): Constrain SdkProcessingMetadata to known keys#15577
AbhiPrasad wants to merge 2 commits into
developfrom
abhi-constrain-SdkProcessingMetadata

Conversation

@AbhiPrasad

Copy link
Copy Markdown
Contributor

After working on #15570, I realized we should be more constrained about what we set on SdkProcessingMetadata.

This PR updates the SdkProcessingMetadata type to be more constrained, not allowing any key to be passed to it. This should make sure we are more critical of changes that could lead to increased memory pressure in the SDK (as SdkProcessingMetadata lives alongside the scope).

@AbhiPrasad
AbhiPrasad requested a review from a teamMarch 4, 2025 16:53
@AbhiPrasadAbhiPrasad self-assigned this Mar 4, 2025
@AbhiPrasad
AbhiPrasad requested review from chargome and mydea and removed request for a teamMarch 4, 2025 16:53
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser23.14 KB--
@sentry/browser - with treeshaking flags22.92 KB--
@sentry/browser (incl. Tracing)36.2 KB-0.02%-5 B 🔽
@sentry/browser (incl. Tracing, Replay)73.37 KB-0.01%-5 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags66.79 KB-0.01%-6 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas)77.99 KB-0.01%-3 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback)90.55 KB-0.02%-14 B 🔽
@sentry/browser (incl. Feedback)40.29 KB--
@sentry/browser (incl. sendFeedback)27.77 KB--
@sentry/browser (incl. FeedbackAsync)32.57 KB--
@sentry/react24.95 KB--
@sentry/react (incl. Tracing)38.08 KB-0.01%-3 B 🔽
@sentry/vue27.37 KB-0.05%-14 B 🔽
@sentry/vue (incl. Tracing)37.88 KB-0.02%-5 B 🔽
@sentry/svelte23.17 KB--
CDN Bundle24.34 KB--
CDN Bundle (incl. Tracing)36.23 KB-0.03%-10 B 🔽
CDN Bundle (incl. Tracing, Replay)71.25 KB-0.01%-6 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback)76.42 KB-0.02%-9 B 🔽
CDN Bundle - uncompressed71.13 KB--
CDN Bundle (incl. Tracing) - uncompressed107.5 KB-0.01%-6 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed218.77 KB-0.01%-6 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed231.34 KB-0.01%-6 B 🔽
@sentry/nextjs (client)39.27 KB+0.04%+13 B 🔺
@sentry/sveltekit (client)36.61 KB-0.02%-6 B 🔽
@sentry/node142.15 KB+0.01%+2 B 🔺
@sentry/node - without tracing95.58 KB+0.02%+11 B 🔺
@sentry/aws-serverless119.92 KB-0.01%-3 B 🔽

View base workflow run

@chargomechargome 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.

Looks good, but would that theoretically be a breaking change?

@AbhiPrasad

Copy link
Copy Markdown
ContributorAuthor

I guess this is a breaking change - but really nobody should be using these APIs other than us.

Maybe we just leave a todo note and come back to this for v10?

@AbhiPrasad

Copy link
Copy Markdown
ContributorAuthor

Will come back to this in v10

@AbhiPrasad
AbhiPrasad deleted the abhi-constrain-SdkProcessingMetadata branch March 24, 2025 19:20
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

@AbhiPrasad@chargome