Skip to content

Commit

Permalink
rename Tracer method name
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Oct 23, 2018
1 parent a3060e8 commit c8af48c
Show file tree
Hide file tree
Showing 14 changed files with 923 additions and 923 deletions.
2 changes: 1 addition & 1 deletion codegen/templates/data.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions codegen/templates/field.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
ctx = ec.Tracer.StartFieldTracing(ctx)
ctx = ec.Tracer.StartFieldExecution(ctx)
resTmp := ec.FieldMiddleware(ctx, {{if $object.Root}}nil{{else}}obj{{end}}, func(rctx context.Context) (interface{}, error) {
ctx = rctx // use context from middleware stack in children
{{- if $field.IsResolver }}
Expand All @@ -75,7 +75,7 @@
res := resTmp.({{$field.Signature}})
rctx.Result = res
resMarshaler := {{ $field.WriteJson }}
ec.Tracer.EndFieldTracing(ctx)
ec.Tracer.EndFieldExecution(ctx)
return resMarshaler
}
{{ end }}
Loading

0 comments on commit c8af48c

Please sign in to comment.