File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
packages/tracing/test/integrations Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -86,20 +86,18 @@ describe('setupOnce', () => {
86
86
expect ( scope . getSpan ) . toBeCalled ( ) ;
87
87
expect ( parentSpan . startChild ) . toBeCalledWith ( {
88
88
description : 'Query.res_1' ,
89
- op : 'apollo' ,
89
+ op : 'db.graphql. apollo' ,
90
90
} ) ;
91
91
expect ( childSpan . finish ) . toBeCalled ( ) ;
92
- expect ( scope . setSpan ) . toHaveBeenCalledTimes ( 2 ) ;
93
92
} ) ;
94
93
95
94
it ( 'should wrap another simple resolver' , ( ) => {
96
95
ApolloServer . config . resolvers [ 0 ] ?. [ 'Mutation' ] ?. [ 'res_2' ] ?.( ) ;
97
96
expect ( scope . getSpan ) . toBeCalled ( ) ;
98
97
expect ( parentSpan . startChild ) . toBeCalledWith ( {
99
98
description : 'Mutation.res_2' ,
100
- op : 'apollo' ,
99
+ op : 'db.graphql. apollo' ,
101
100
} ) ;
102
101
expect ( childSpan . finish ) . toBeCalled ( ) ;
103
- expect ( scope . setSpan ) . toHaveBeenCalledTimes ( 2 ) ;
104
102
} ) ;
105
103
} ) ;
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ describe('setupOnce', () => {
48
48
expect ( scope . getSpan ) . toBeCalled ( ) ;
49
49
expect ( parentSpan . startChild ) . toBeCalledWith ( {
50
50
description : 'execute' ,
51
- op : 'graphql' ,
51
+ op : 'db. graphql' ,
52
52
} ) ;
53
53
expect ( childSpan . finish ) . toBeCalled ( ) ;
54
54
expect ( scope . setSpan ) . toHaveBeenCalledTimes ( 2 ) ;
You can’t perform that action at this time.
0 commit comments