Skip to content

fix(types): Support source map debug images#1268

Draft
sidsri14 wants to merge 1 commit into
getsentry:masterfrom
sidsri14:sidsri14/fix-sourcemap-debug-image
Draft

fix(types): Support source map debug images#1268
sidsri14 wants to merge 1 commit into
getsentry:masterfrom
sidsri14:sidsri14/fix-sourcemap-debug-image

Conversation

@sidsri14

Copy link
Copy Markdown

Summary

  • support sourcemap debug images emitted by browser SDKs
  • preserve unknown debug image payloads for forward-compatible event deserialization
  • add round-trip coverage for source-map and future image variants

Testing

  • cargo fmt --all -- --check
  • cargo test --workspace --all-features --all-targets --locked
  • cargo test --workspace --all-features --doc --locked
  • cargo test -p sentry --features test --locked
  • cargo clippy --all-features --workspace --tests --examples --locked -- -D clippy::all
  • all feature combinations from .github/workflows/check.yml
  • cargo +1.88.0 test -p sentry-types --locked

Fixes #1267

Accept source map debug images emitted by browser SDKs so events with debug IDs deserialize.

Preserve unknown image payloads so future variants do not invalidate otherwise usable events.

Fixes getsentry#1267
@sdk-maintainer-bot

Copy link
Copy Markdown

👋 Thanks for sending this our way! Before a maintainer reviews the code, we ask community contributors to align with us on the approach first — it keeps your time pointed at changes we can land.

The easiest way is to open or find a GitHub issue and discuss the approach with a maintainer there, then link that issue from this PR. If the issue is already assigned to someone else, please check in with them (or with us) before continuing — otherwise two people may end up working on the same task.

See our contributing guidelines for the full picture.

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.

DebugImage has no sourcemap variant, so events carrying JS debug IDs fail to deserialize

1 participant