sentry icon indicating copy to clipboard operation
sentry copied to clipboard

[Replay] Prevent frontend errors when SDK sends null data

Open c298lee opened this issue 4 months ago • 0 comments

There is nothing preventing SDKs from sending bad data to replays. On the frontend, we expect breadcrumbs to have some required fields depending on their type, but there is no validation on the SDK side or on ingest. To prevent errors on the frontend, we should set null fields that are required to an empty string during breadcrumb/frame hydration.

Related to https://github.com/getsentry/sentry/issues/78837 and https://github.com/getsentry/sentry/pull/78841

c298lee avatar Oct 18 '24 18:10 c298lee