File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
datadog-instrumentations/src
datadog-plugin-graphql/src Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,6 @@ function finishResolvers ({ fields }) {
322
322
field . ctx . error = field . error
323
323
resolveErrorCh . publish ( field . ctx )
324
324
}
325
- console . log ( 'finishResolvers' , field )
326
325
finishResolveCh . publish ( field . ctx )
327
326
} )
328
327
}
Original file line number Diff line number Diff line change @@ -12,12 +12,11 @@ class GraphQLResolvePlugin extends TracingPlugin {
12
12
start ( fieldCtx ) {
13
13
const { info, ctx : parentCtx , args } = fieldCtx
14
14
15
- const pathInfo = info && info . path
16
- const path = pathToArray ( pathInfo )
15
+ const path = getPath ( info , this . config )
17
16
18
17
// we need to get the parent span to the field if it exists for correct span parenting
19
18
// of nested fields
20
- const parentField = getParentField ( parentCtx , path )
19
+ const parentField = getParentField ( parentCtx , pathToArray ( info && info . path ) )
21
20
const childOf = parentField ?. ctx ?. currentStore ?. span
22
21
23
22
fieldCtx . parent = parentField
You can’t perform that action at this time.
0 commit comments