Skip to content

Commit 12bfd75

Browse files
dcalhounclaude
andcommitted
feat: forward GutenbergKit source-map Debug IDs to Sentry
Conform GutenbergKit's `GutenbergJSException.DebugImage` to the crash-logging service's `JSDebugImage` protocol, so the editor's source-map Debug IDs reach the Sentry event's `debug_meta`. This lets Sentry symbolicate GutenbergKit editor exceptions by Debug ID, independent of the WebView's on-device file paths. The existing `JSException` conformance picks up the debug images automatically via the protocol's associated type; the legacy React Native path is unaffected (it provides no debug images and uses the empty default). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 23c3e4b commit 12bfd75

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

WordPress/Classes/ViewRelated/NewGutenberg/NewGutenbergViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -662,4 +662,5 @@ private extension NewGutenbergViewController {
662662

663663
// Extend Gutenberg JavaScript exception struct to conform the protocol defined in the Crash Logging service
664664
extension GutenbergJSException.StacktraceLine: @retroactive AutomatticTracks.JSStacktraceLine {}
665+
extension GutenbergJSException.DebugImage: @retroactive AutomatticTracks.JSDebugImage {}
665666
extension GutenbergJSException: @retroactive AutomatticTracks.JSException {}

0 commit comments

Comments
 (0)