Skip to content

Commit 0d72292

Browse files
antonisclaude
andcommitted
test(e2e): Migrate ErrorsScreen source assertion to sentry.segment.name.source
JS v11 removed the `sentry.source` semantic attribute; the transaction name source now lives under `sentry.segment.name.source` on the segment span. The navigation transaction's serialized `contexts.trace.data` therefore carries the new key (matching the app-start unit snapshot already updated in this branch). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 6f07544 commit 0d72292

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

samples/react-native/e2e/tests/captureErrorScreenTransaction/captureErrorsScreenTransaction.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ describe('Capture Errors Screen Transaction', () => {
7474
'sentry.op': 'ui.load',
7575
'sentry.origin': 'auto.app.start',
7676
'sentry.sample_rate': 1,
77-
'sentry.source': 'component',
77+
// JS v11 removed `sentry.source`; the transaction name source now
78+
// lives under `sentry.segment.name.source` on the segment span.
79+
'sentry.segment.name.source': 'component',
7880
'thread.name': 'javascript',
7981
}),
8082
op: 'ui.load',

0 commit comments

Comments
 (0)