File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1158,6 +1158,28 @@ describe('Tests the SDK functionality', () => {
1158
1158
} ) ;
1159
1159
} ) ;
1160
1160
1161
+ it ( 'propagateTraceparent is false by default' , ( ) => {
1162
+ init ( { } ) ;
1163
+
1164
+ const actualOptions = usedOptions ( ) ;
1165
+ expect ( actualOptions ) . toEqual (
1166
+ expect . objectContaining ( {
1167
+ propagateTraceparent : false ,
1168
+ } )
1169
+ )
1170
+ } ) ;
1171
+
1172
+ it ( 'propagateTraceparent is getting passed to the client' , ( ) => {
1173
+ init ( { propagateTraceparent : true } ) ;
1174
+
1175
+ const actualOptions = usedOptions ( ) ;
1176
+ expect ( actualOptions ) . toEqual (
1177
+ expect . objectContaining ( {
1178
+ propagateTraceparent : true ,
1179
+ } )
1180
+ )
1181
+ } )
1182
+
1161
1183
function expectIntegration ( name : string ) : void {
1162
1184
const actualOptions = usedOptions ( ) ;
1163
1185
const actualIntegrations = actualOptions ?. integrations ;
You can’t perform that action at this time.
0 commit comments