File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
dev-packages/browser-integration-tests/suites/tracing/dsc-txn-name-update Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ sentryTest('updates the DSC when the txn name is updated and high-quality', asyn
30
30
8. Make request and check that baggage has updated HQ txn name
31
31
9. Capture error and check that envelope trace header has updated HQ txn name
32
32
10. End span and check that envelope trace header has updated HQ txn name
33
+ 11. Make another request and check that there's no span information in baggage
34
+ 12. Capture an error and check that envelope trace header has no span information
33
35
*/
34
36
35
37
// 1
@@ -138,6 +140,24 @@ sentryTest('updates the DSC when the txn name is updated and high-quality', asyn
138
140
} ) ;
139
141
140
142
expect ( txnEvent . transaction ) . toEqual ( 'updated-root-span-2' ) ;
143
+
144
+ // 11
145
+ const baggageItemsAfterEnd = await makeRequestAndGetBaggageItems ( page ) ;
146
+ expect ( baggageItemsAfterEnd ) . toEqual ( [
147
+ 'sentry-environment=production' ,
148
+ 'sentry-public_key=public' ,
149
+ 'sentry-release=1.1.1' ,
150
+ `sentry-trace_id=${ traceId } ` ,
151
+ ] ) ;
152
+
153
+ // 12
154
+ const errorEnvelopeTraceHeaderAfterEnd = await captureErrorAndGetEnvelopeTraceHeader ( page ) ;
155
+ expect ( errorEnvelopeTraceHeaderAfterEnd ) . toEqual ( {
156
+ environment : 'production' ,
157
+ public_key : 'public' ,
158
+ release : '1.1.1' ,
159
+ trace_id : traceId ,
160
+ } ) ;
141
161
} ) ;
142
162
143
163
async function makeRequestAndGetBaggageItems ( page : Page ) : Promise < string [ ] > {
You can’t perform that action at this time.
0 commit comments