File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dev-packages/browser-integration-tests/suites/public-api/startSpan/basic Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ sentryTest('should report finished spans as children of the root transaction', a
24
24
const url = await getLocalTestPath ( { testDir : __dirname } ) ;
25
25
const transaction = await getFirstSentryEnvelopeRequest < SerializedEvent > ( page , url ) ;
26
26
27
- const rootSpanId = transaction ?. contexts ?. trace ?. span_id ;
28
-
29
27
expect ( transaction . spans ) . toHaveLength ( 1 ) ;
30
28
31
29
const span_1 = transaction . spans ?. [ 0 ] ;
32
30
expect ( span_1 ?. description ) . toBe ( 'child_span' ) ;
33
- expect ( span_1 ?. parent_span_id ) . toEqual ( rootSpanId ) ;
31
+ expect ( span_1 ?. parent_span_id ) . toEqual ( transaction ?. contexts ?. trace ?. span_id ) ;
32
+ expect ( span_1 ?. origin ) . toEqual ( 'manual' ) ;
33
+ expect ( span_1 ?. data ?. [ 'sentry.origin' ] ) . toEqual ( 'manual' ) ;
34
34
} ) ;
You can’t perform that action at this time.
0 commit comments