File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
dev-packages/node-integration-tests/suites/tracing/meta-tags-twp-errors Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -41,13 +41,15 @@ describe('errors in TwP mode have same trace in trace context and getTraceData()
41
41
42
42
const traceData = contexts ?. traceData || { } ;
43
43
44
+ expect ( traceData [ 'sentry-trace' ] ) . toMatch ( / ^ [ a - f 0 - 9 ] { 32 } - [ a - f 0 - 9 ] { 16 } $ / ) ;
44
45
expect ( traceData [ 'sentry-trace' ] ) . toContain ( `${ trace_id } -` ) ;
45
46
// span_id is a random span ID
46
47
expect ( traceData [ 'sentry-trace' ] ) . not . toContain ( span_id ) ;
47
48
48
49
expect ( traceData . baggage ) . toContain ( `sentry-trace_id=${ trace_id } ` ) ;
49
50
expect ( traceData . baggage ) . not . toContain ( 'sentry-sampled=' ) ;
50
51
52
+ expect ( traceData . metaTags ) . toMatch ( / < m e t a n a m e = " s e n t r y - t r a c e " c o n t e n t = " [ a - f 0 - 9 ] { 32 } - [ a - f 0 - 9 ] { 16 } " > / ) ;
51
53
expect ( traceData . metaTags ) . toContain ( `<meta name="sentry-trace" content="${ trace_id } -` ) ;
52
54
// span_id is a random span ID
53
55
expect ( traceData . metaTags ) . not . toContain ( span_id ) ;
You can’t perform that action at this time.
0 commit comments