File tree Expand file tree Collapse file tree 5 files changed +60
-0
lines changed
dev-packages/e2e-tests/test-applications
nuxt-3-dynamic-import/tests
nuxt-3-top-level-import/tests Expand file tree Collapse file tree 5 files changed +60
-0
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,19 @@ test.describe('distributed tracing', () => {
4545 } ) ;
4646
4747 // connected trace
48+ expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . not . toBeUndefined ( ) ;
49+ expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . not . toBeUndefined ( ) ;
50+ expect ( clientTxnEvent . contexts ?. trace ?. baggage ) . not . toBeUndefined ( ) ;
51+
4852 expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. trace_id ) ;
4953 expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. span_id ) ;
54+ expect ( ( clientTxnEvent . contexts ?. trace ?. baggage as string | undefined ) ?. split ( ',' ) . sort ( ) ) . toEqual (
55+ expect . arrayContaining ( [
56+ 'sentry-sample-rate=1.0' ,
57+ 'sentry-sampled=true' ,
58+ `sentry-trace_id=${ serverTxnEvent . contexts ?. trace ?. trace_id } ` ,
59+ 'sentry-transaction=GET%20%2Ftest-param%2Fs0me-param' ,
60+ ] ) ,
61+ ) ;
5062 } ) ;
5163} ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,19 @@ test.describe('distributed tracing', () => {
4545 } ) ;
4646
4747 // connected trace
48+ expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . not . toBeUndefined ( ) ;
49+ expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . not . toBeUndefined ( ) ;
50+ expect ( clientTxnEvent . contexts ?. trace ?. baggage ) . not . toBeUndefined ( ) ;
51+
4852 expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. trace_id ) ;
4953 expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. span_id ) ;
54+ expect ( ( clientTxnEvent . contexts ?. trace ?. baggage as string | undefined ) ?. split ( ',' ) . sort ( ) ) . toEqual (
55+ expect . arrayContaining ( [
56+ 'sentry-sample-rate=1.0' ,
57+ 'sentry-sampled=true' ,
58+ `sentry-trace_id=${ serverTxnEvent . contexts ?. trace ?. trace_id } ` ,
59+ 'sentry-transaction=GET%20%2Ftest-param%2Fs0me-param' ,
60+ ] ) ,
61+ ) ;
5062 } ) ;
5163} ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,19 @@ test.describe('distributed tracing', () => {
4545 } ) ;
4646
4747 // connected trace
48+ expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . not . toBeUndefined ( ) ;
49+ expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . not . toBeUndefined ( ) ;
50+ expect ( clientTxnEvent . contexts ?. trace ?. baggage ) . not . toBeUndefined ( ) ;
51+
4852 expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. trace_id ) ;
4953 expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. span_id ) ;
54+ expect ( ( clientTxnEvent . contexts ?. trace ?. baggage as string | undefined ) ?. split ( ',' ) . sort ( ) ) . toEqual (
55+ expect . arrayContaining ( [
56+ 'sentry-sample-rate=1.0' ,
57+ 'sentry-sampled=true' ,
58+ `sentry-trace_id=${ serverTxnEvent . contexts ?. trace ?. trace_id } ` ,
59+ 'sentry-transaction=GET%20%2Ftest-param%2Fs0me-param' ,
60+ ] ) ,
61+ ) ;
5062 } ) ;
5163} ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,19 @@ test.describe('distributed tracing', () => {
4545 } ) ;
4646
4747 // connected trace
48+ expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . not . toBeUndefined ( ) ;
49+ expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . not . toBeUndefined ( ) ;
50+ expect ( clientTxnEvent . contexts ?. trace ?. baggage ) . not . toBeUndefined ( ) ;
51+
4852 expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. trace_id ) ;
4953 expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. span_id ) ;
54+ expect ( ( clientTxnEvent . contexts ?. trace ?. baggage as string | undefined ) ?. split ( ',' ) . sort ( ) ) . toEqual (
55+ expect . arrayContaining ( [
56+ 'sentry-sample-rate=1.0' ,
57+ 'sentry-sampled=true' ,
58+ `sentry-trace_id=${ serverTxnEvent . contexts ?. trace ?. trace_id } ` ,
59+ 'sentry-transaction=GET%20%2Ftest-param%2Fs0me-param' ,
60+ ] ) ,
61+ ) ;
5062 } ) ;
5163} ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,19 @@ test.describe('distributed tracing', () => {
4545 } ) ;
4646
4747 // connected trace
48+ expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . not . toBeUndefined ( ) ;
49+ expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . not . toBeUndefined ( ) ;
50+ expect ( clientTxnEvent . contexts ?. trace ?. baggage ) . not . toBeUndefined ( ) ;
51+
4852 expect ( clientTxnEvent . contexts ?. trace ?. trace_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. trace_id ) ;
4953 expect ( clientTxnEvent . contexts ?. trace ?. parent_span_id ) . toBe ( serverTxnEvent . contexts ?. trace ?. span_id ) ;
54+ expect ( ( clientTxnEvent . contexts ?. trace ?. baggage as string | undefined ) ?. split ( ',' ) . sort ( ) ) . toEqual (
55+ expect . arrayContaining ( [
56+ 'sentry-sample-rate=1.0' ,
57+ 'sentry-sampled=true' ,
58+ `sentry-trace_id=${ serverTxnEvent . contexts ?. trace ?. trace_id } ` ,
59+ 'sentry-transaction=GET%20%2Ftest-param%2Fs0me-param' ,
60+ ] ) ,
61+ ) ;
5062 } ) ;
5163} ) ;
You can’t perform that action at this time.
0 commit comments