@@ -208,6 +208,7 @@ describe('graphql', () => {
208208 'books' ,
209209 '[Book]' ,
210210 'books {\n' + ' name\n' + ' }' ,
211+ 'Query' ,
211212 executeSpan . spanContext ( ) . spanId
212213 ) ;
213214 const parentId = resolveParentSpan . spanContext ( ) . spanId ;
@@ -217,6 +218,7 @@ describe('graphql', () => {
217218 'books.0.name' ,
218219 'String' ,
219220 'name' ,
221+ 'Book' ,
220222 parentId
221223 ) ;
222224 assertResolveSpan (
@@ -225,6 +227,7 @@ describe('graphql', () => {
225227 'books.1.name' ,
226228 'String' ,
227229 'name' ,
230+ 'Book' ,
228231 parentId
229232 ) ;
230233 assertResolveSpan (
@@ -233,6 +236,7 @@ describe('graphql', () => {
233236 'books.2.name' ,
234237 'String' ,
235238 'name' ,
239+ 'Book' ,
236240 parentId
237241 ) ;
238242 } ) ;
@@ -341,6 +345,7 @@ describe('graphql', () => {
341345 'book' ,
342346 'Book' ,
343347 'book(id: *) {\n' + ' name\n' + ' }' ,
348+ 'Query' ,
344349 executeSpan . spanContext ( ) . spanId
345350 ) ;
346351 const parentId = resolveParentSpan . spanContext ( ) . spanId ;
@@ -350,6 +355,7 @@ describe('graphql', () => {
350355 'book.name' ,
351356 'String' ,
352357 'name' ,
358+ 'Book' ,
353359 parentId
354360 ) ;
355361 } ) ;
@@ -446,6 +452,7 @@ describe('graphql', () => {
446452 'book' ,
447453 'Book' ,
448454 'book(id: $id) {\n' + ' name\n' + ' }' ,
455+ 'Query' ,
449456 executeSpan . spanContext ( ) . spanId
450457 ) ;
451458 const parentId = resolveParentSpan . spanContext ( ) . spanId ;
@@ -455,6 +462,7 @@ describe('graphql', () => {
455462 'book.name' ,
456463 'String' ,
457464 'name' ,
465+ 'Book' ,
458466 parentId
459467 ) ;
460468 } ) ;
@@ -541,6 +549,7 @@ describe('graphql', () => {
541549 ' name\n' +
542550 ' }\n' +
543551 ' }' ,
552+ 'Query' ,
544553 executeSpan . spanContext ( ) . spanId
545554 ) ;
546555
@@ -551,6 +560,7 @@ describe('graphql', () => {
551560 'search.0.name' ,
552561 'String' ,
553562 'name' ,
563+ 'Book' ,
554564 parentId
555565 ) ;
556566 assertResolveSpan (
@@ -559,6 +569,7 @@ describe('graphql', () => {
559569 'search.1.name' ,
560570 'String' ,
561571 'name' ,
572+ 'EBook' ,
562573 parentId
563574 ) ;
564575 } ) ;
@@ -900,6 +911,7 @@ describe('graphql', () => {
900911 'books' ,
901912 '[Book]' ,
902913 'books {\n name\n }' ,
914+ 'Query' ,
903915 executeSpanId
904916 ) ;
905917
@@ -909,6 +921,7 @@ describe('graphql', () => {
909921 'books.0.name' ,
910922 'String' ,
911923 'name' ,
924+ 'Book' ,
912925 executeSpanId
913926 ) ;
914927
@@ -918,6 +931,7 @@ describe('graphql', () => {
918931 'books.1.name' ,
919932 'String' ,
920933 'name' ,
934+ 'Book' ,
921935 executeSpanId
922936 ) ;
923937
@@ -927,6 +941,7 @@ describe('graphql', () => {
927941 'books.2.name' ,
928942 'String' ,
929943 'name' ,
944+ 'Book' ,
930945 executeSpanId
931946 ) ;
932947 } ) ;
@@ -1016,6 +1031,7 @@ describe('graphql', () => {
10161031 'book' ,
10171032 'Book' ,
10181033 'book(id: 0) {\n' + ' name\n' + ' }' ,
1034+ 'Query' ,
10191035 executeSpan . spanContext ( ) . spanId
10201036 ) ;
10211037 const parentId = resolveParentSpan . spanContext ( ) . spanId ;
@@ -1025,6 +1041,7 @@ describe('graphql', () => {
10251041 'book.name' ,
10261042 'String' ,
10271043 'name' ,
1044+ 'Book' ,
10281045 parentId
10291046 ) ;
10301047 } ) ;
@@ -1123,10 +1140,19 @@ describe('graphql', () => {
11231140 ' ) {\n' +
11241141 ' id\n' +
11251142 ' }' ,
1143+ 'Mutation' ,
11261144 executeSpan . spanContext ( ) . spanId
11271145 ) ;
11281146 const parentId = resolveParentSpan . spanContext ( ) . spanId ;
1129- assertResolveSpan ( span1 , 'id' , 'addBook.id' , 'Int' , 'id' , parentId ) ;
1147+ assertResolveSpan (
1148+ span1 ,
1149+ 'id' ,
1150+ 'addBook.id' ,
1151+ 'Int' ,
1152+ 'id' ,
1153+ 'Book' ,
1154+ parentId
1155+ ) ;
11301156 } ) ;
11311157 } ) ;
11321158 describe ( 'AND source is query with param and variables' , ( ) => {
@@ -1222,6 +1248,7 @@ describe('graphql', () => {
12221248 'book' ,
12231249 'Book' ,
12241250 'book(id: $id) {\n' + ' name\n' + ' }' ,
1251+ 'Query' ,
12251252 executeSpan . spanContext ( ) . spanId
12261253 ) ;
12271254 const parentId = resolveParentSpan . spanContext ( ) . spanId ;
@@ -1231,6 +1258,7 @@ describe('graphql', () => {
12311258 'book.name' ,
12321259 'String' ,
12331260 'name' ,
1261+ 'Book' ,
12341262 parentId
12351263 ) ;
12361264 } ) ;
@@ -1325,10 +1353,19 @@ describe('graphql', () => {
13251353 ' ) {\n' +
13261354 ' id\n' +
13271355 ' }' ,
1356+ 'Mutation' ,
13281357 executeSpan . spanContext ( ) . spanId
13291358 ) ;
13301359 const parentId = resolveParentSpan . spanContext ( ) . spanId ;
1331- assertResolveSpan ( span1 , 'id' , 'addBook.id' , 'Int' , 'id' , parentId ) ;
1360+ assertResolveSpan (
1361+ span1 ,
1362+ 'id' ,
1363+ 'addBook.id' ,
1364+ 'Int' ,
1365+ 'id' ,
1366+ 'Book' ,
1367+ parentId
1368+ ) ;
13321369 } ) ;
13331370 } ) ;
13341371
0 commit comments