diff --git a/codegen/templates/data.go b/codegen/templates/data.go index ed8226545ee..e6bf0a1ff2b 100644 --- a/codegen/templates/data.go +++ b/codegen/templates/data.go @@ -2,7 +2,7 @@ package templates var data = map[string]string{ "args.gotpl": "\targs := map[string]interface{}{}\n\t{{- range $i, $arg := . }}\n\t\tvar arg{{$i}} {{$arg.Signature }}\n\t\tif tmp, ok := rawArgs[{{$arg.GQLName|quote}}]; ok {\n\t\t\tvar err error\n\t\t\t{{$arg.Unmarshal (print \"arg\" $i) \"tmp\" }}\n\t\t\tif err != nil {\n\t\t\t\treturn nil, err\n\t\t\t}\n\t\t}\n\t\targs[{{$arg.GQLName|quote}}] = arg{{$i}}\n\t{{- end }}\n\treturn args, nil\n", - "field.gotpl": "{{ $field := . }}\n{{ $object := $field.Object }}\n\n{{- if $object.Stream }}\n\tfunc (ec *executionContext) _{{$object.GQLType}}_{{$field.GQLName}}(ctx context.Context, field graphql.CollectedField) func() graphql.Marshaler {\n\t\t{{- if $field.Args }}\n\t\t\trawArgs := field.ArgumentMap(ec.Variables)\n\t\t\targs, err := {{ $field.ArgsFunc }}(rawArgs)\n\t\t\tif err != nil {\n\t\t\t\tec.Error(ctx, err)\n\t\t\t\treturn nil\n\t\t\t}\n\t\t{{- end }}\n\t\tctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{\n\t\t\tField: field,\n\t\t})\n\t\t// FIXME: subscriptions are missing request middleware stack https://github.com/99designs/gqlgen/issues/259\n\t\t// and Tracer stack\n\t\trctx := ctx\n\t\tresults, err := ec.resolvers.{{ $field.ShortInvocation }}\n\t\tif err != nil {\n\t\t\tec.Error(ctx, err)\n\t\t\treturn nil\n\t\t}\n\t\treturn func() graphql.Marshaler {\n\t\t\tres, ok := <-results\n\t\t\tif !ok {\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\tvar out graphql.OrderedMap\n\t\t\tout.Add(field.Alias, func() graphql.Marshaler { {{ $field.WriteJson }} }())\n\t\t\treturn &out\n\t\t}\n\t}\n{{ else }}\n\t// nolint: vetshadow\n\tfunc (ec *executionContext) _{{$object.GQLType}}_{{$field.GQLName}}(ctx context.Context, field graphql.CollectedField, {{if not $object.Root}}obj *{{$object.FullName}}{{end}}) graphql.Marshaler {\n\t\t{{- if $field.Args }}\n\t\t\trawArgs := field.ArgumentMap(ec.Variables)\n\t\t\targs, err := {{ $field.ArgsFunc }}(rawArgs)\n\t\t\tif err != nil {\n\t\t\t\tec.Error(ctx, err)\n\t\t\t\treturn graphql.Null\n\t\t\t}\n\t\t{{- end }}\n\t\trctx := &graphql.ResolverContext{\n\t\t\tObject: {{$object.GQLType|quote}},\n\t\t\tArgs: {{if $field.Args }}args{{else}}nil{{end}},\n\t\t\tField: field,\n\t\t}\n\t\tctx = graphql.WithResolverContext(ctx, rctx)\n\t\tctx = ec.Tracer.StartFieldExecution(ctx)\n\t\tdefer ec.Tracer.EndFieldExecution(ctx)\n\t\tresTmp := ec.FieldMiddleware(ctx, {{if $object.Root}}nil{{else}}obj{{end}}, func(rctx context.Context) (interface{}, error) {\n\t\t\tctx = rctx // use context from middleware stack in children\n\t\t\t{{- if $field.IsResolver }}\n\t\t\t\treturn ec.resolvers.{{ $field.ShortInvocation }}\n\t\t\t{{- else if $field.IsMethod }}\n\t\t\t\t{{- if $field.NoErr }}\n\t\t\t\t\treturn {{$field.GoReceiverName}}.{{$field.GoFieldName}}({{ $field.CallArgs }}), nil\n\t\t\t\t{{- else }}\n\t\t\t\t\treturn {{$field.GoReceiverName}}.{{$field.GoFieldName}}({{ $field.CallArgs }})\n\t\t\t\t{{- end }}\n\t\t\t{{- else if $field.IsVariable }}\n\t\t\t\treturn {{$field.GoReceiverName}}.{{$field.GoFieldName}}, nil\n\t\t\t{{- end }}\n\t\t})\n\t\tif resTmp == nil {\n\t\t\t{{- if $field.ASTType.NonNull }}\n\t\t\t\tif !ec.HasError(rctx) {\n\t\t\t\t\tec.Errorf(ctx, \"must not be null\")\n\t\t\t\t}\n\t\t\t{{- end }}\n\t\t\treturn graphql.Null\n\t\t}\n\t\tres := resTmp.({{$field.Signature}})\n\t\trctx.Result = res\n\t\t{{ $field.WriteJson }}\n\t}\n{{ end }}\n", + "field.gotpl": "{{ $field := . }}\n{{ $object := $field.Object }}\n\n{{- if $object.Stream }}\n\tfunc (ec *executionContext) _{{$object.GQLType}}_{{$field.GQLName}}(ctx context.Context, field graphql.CollectedField) func() graphql.Marshaler {\n\t\t{{- if $field.Args }}\n\t\t\trawArgs := field.ArgumentMap(ec.Variables)\n\t\t\targs, err := {{ $field.ArgsFunc }}(rawArgs)\n\t\t\tif err != nil {\n\t\t\t\tec.Error(ctx, err)\n\t\t\t\treturn nil\n\t\t\t}\n\t\t{{- end }}\n\t\tctx = graphql.WithResolverContext(ctx, &graphql.ResolverContext{\n\t\t\tField: field,\n\t\t})\n\t\t// FIXME: subscriptions are missing request middleware stack https://github.com/99designs/gqlgen/issues/259\n\t\t// and Tracer stack\n\t\trctx := ctx\n\t\tresults, err := ec.resolvers.{{ $field.ShortInvocation }}\n\t\tif err != nil {\n\t\t\tec.Error(ctx, err)\n\t\t\treturn nil\n\t\t}\n\t\treturn func() graphql.Marshaler {\n\t\t\tres, ok := <-results\n\t\t\tif !ok {\n\t\t\t\treturn nil\n\t\t\t}\n\t\t\tvar out graphql.OrderedMap\n\t\t\tout.Add(field.Alias, func() graphql.Marshaler { {{ $field.WriteJson }} }())\n\t\t\treturn &out\n\t\t}\n\t}\n{{ else }}\n\t// nolint: vetshadow\n\tfunc (ec *executionContext) _{{$object.GQLType}}_{{$field.GQLName}}(ctx context.Context, field graphql.CollectedField, {{if not $object.Root}}obj *{{$object.FullName}}{{end}}) graphql.Marshaler {\n\t\tctx = ec.Tracer.StartFieldExecution(ctx, field)\n\t\t{{- if $field.Args }}\n\t\t\trawArgs := field.ArgumentMap(ec.Variables)\n\t\t\targs, err := {{ $field.ArgsFunc }}(rawArgs)\n\t\t\tif err != nil {\n\t\t\t\tec.Error(ctx, err)\n\t\t\t\treturn graphql.Null\n\t\t\t}\n\t\t{{- end }}\n\t\trctx := &graphql.ResolverContext{\n\t\t\tObject: {{$object.GQLType|quote}},\n\t\t\tArgs: {{if $field.Args }}args{{else}}nil{{end}},\n\t\t\tField: field,\n\t\t}\n\t\tctx = graphql.WithResolverContext(ctx, rctx)\n\t\tctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)\n\t\tdefer ec.Tracer.EndFieldExecution(ctx)\n\t\tresTmp := ec.FieldMiddleware(ctx, {{if $object.Root}}nil{{else}}obj{{end}}, func(rctx context.Context) (interface{}, error) {\n\t\t\tctx = rctx // use context from middleware stack in children\n\t\t\t{{- if $field.IsResolver }}\n\t\t\t\treturn ec.resolvers.{{ $field.ShortInvocation }}\n\t\t\t{{- else if $field.IsMethod }}\n\t\t\t\t{{- if $field.NoErr }}\n\t\t\t\t\treturn {{$field.GoReceiverName}}.{{$field.GoFieldName}}({{ $field.CallArgs }}), nil\n\t\t\t\t{{- else }}\n\t\t\t\t\treturn {{$field.GoReceiverName}}.{{$field.GoFieldName}}({{ $field.CallArgs }})\n\t\t\t\t{{- end }}\n\t\t\t{{- else if $field.IsVariable }}\n\t\t\t\treturn {{$field.GoReceiverName}}.{{$field.GoFieldName}}, nil\n\t\t\t{{- end }}\n\t\t})\n\t\tif resTmp == nil {\n\t\t\t{{- if $field.ASTType.NonNull }}\n\t\t\t\tif !ec.HasError(rctx) {\n\t\t\t\t\tec.Errorf(ctx, \"must not be null\")\n\t\t\t\t}\n\t\t\t{{- end }}\n\t\t\treturn graphql.Null\n\t\t}\n\t\tres := resTmp.({{$field.Signature}})\n\t\trctx.Result = res\n\t\tctx = ec.Tracer.StartFieldChildExecution(ctx)\n\t\t{{ $field.WriteJson }}\n\t}\n{{ end }}\n", "generated.gotpl": "// Code generated by github.com/99designs/gqlgen, DO NOT EDIT.\n\npackage {{ .PackageName }}\n\nimport (\n{{- range $import := .Imports }}\n\t{{- $import.Write }}\n{{ end }}\n)\n\n// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.\nfunc NewExecutableSchema(cfg Config) graphql.ExecutableSchema {\n\treturn &executableSchema{\n\t\tresolvers: cfg.Resolvers,\n\t\tdirectives: cfg.Directives,\n\t\tcomplexity: cfg.Complexity,\n\t}\n}\n\ntype Config struct {\n\tResolvers ResolverRoot\n\tDirectives DirectiveRoot\n\tComplexity ComplexityRoot\n}\n\ntype ResolverRoot interface {\n{{- range $object := .Objects -}}\n\t{{ if $object.HasResolvers -}}\n\t\t{{$object.GQLType}}() {{$object.GQLType}}Resolver\n\t{{ end }}\n{{- end }}\n}\n\ntype DirectiveRoot struct {\n{{ range $directive := .Directives }}\n\t{{ $directive.Declaration }}\n{{ end }}\n}\n\ntype ComplexityRoot struct {\n{{ range $object := .Objects }}\n\t{{ if not $object.IsReserved -}}\n\t\t{{ $object.GQLType|toCamel }} struct {\n\t\t{{ range $field := $object.Fields -}}\n\t\t\t{{ if not $field.IsReserved -}}\n\t\t\t\t{{ $field.GQLName|toCamel }} {{ $field.ComplexitySignature }}\n\t\t\t{{ end }}\n\t\t{{- end }}\n\t\t}\n\t{{- end }}\n{{ end }}\n}\n\n{{ range $object := .Objects -}}\n\t{{ if $object.HasResolvers }}\n\t\ttype {{$object.GQLType}}Resolver interface {\n\t\t{{ range $field := $object.Fields -}}\n\t\t\t{{ $field.ShortResolverDeclaration }}\n\t\t{{ end }}\n\t\t}\n\t{{- end }}\n{{- end }}\n\n{{ range $object := .Objects -}}\n\t{{ range $field := $object.Fields -}}\n\t\t{{ if $field.Args }}\n\t\t\tfunc {{ $field.ArgsFunc }}(rawArgs map[string]interface{}) (map[string]interface{}, error) {\n\t\t\t{{ template \"args.gotpl\" $field.Args }}\n\t\t\t}\n\t\t{{ end }}\n\t{{ end }}\n{{- end }}\n\n{{ range $directive := .Directives }}\n\t{{ if $directive.Args }}\n\t\tfunc {{ $directive.ArgsFunc }}(rawArgs map[string]interface{}) (map[string]interface{}, error) {\n\t\t{{ template \"args.gotpl\" $directive.Args }}\n\t\t}\n\t{{ end }}\n{{ end }}\n\ntype executableSchema struct {\n\tresolvers ResolverRoot\n\tdirectives DirectiveRoot\n\tcomplexity ComplexityRoot\n}\n\nfunc (e *executableSchema) Schema() *ast.Schema {\n\treturn parsedSchema\n}\n\nfunc (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) {\n\tswitch typeName + \".\" + field {\n\t{{ range $object := .Objects }}\n\t\t{{ if not $object.IsReserved }}\n\t\t\t{{ range $field := $object.Fields }}\n\t\t\t\t{{ if not $field.IsReserved }}\n\t\t\t\t\tcase \"{{$object.GQLType}}.{{$field.GQLName}}\":\n\t\t\t\t\t\tif e.complexity.{{$object.GQLType|toCamel}}.{{$field.GQLName|toCamel}} == nil {\n\t\t\t\t\t\t\tbreak\n\t\t\t\t\t\t}\n\t\t\t\t\t\t{{ if $field.Args }}\n\t\t\t\t\t\t\targs, err := {{ $field.ArgsFunc }}(rawArgs)\n\t\t\t\t\t\t\tif err != nil {\n\t\t\t\t\t\t\t\treturn 0, false\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t{{ end }}\n\t\t\t\t\t\treturn e.complexity.{{$object.GQLType|toCamel}}.{{$field.GQLName|toCamel}}(childComplexity{{if $field.Args}}, {{$field.ComplexityArgs}} {{end}}), true\n\t\t\t\t{{ end }}\n\t\t\t{{ end }}\n\t\t{{ end }}\n\t{{ end }}\n\t}\n\treturn 0, false\n}\n\nfunc (e *executableSchema) Query(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {\n\t{{- if .QueryRoot }}\n\t\tec := executionContext{graphql.GetRequestContext(ctx), e}\n\n\t\tbuf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte {\n\t\t\tdata := ec._{{.QueryRoot.GQLType}}(ctx, op.SelectionSet)\n\t\t\tvar buf bytes.Buffer\n\t\t\tdata.MarshalGQL(&buf)\n\t\t\treturn buf.Bytes()\n\t\t})\n\n\t\treturn &graphql.Response{\n\t\t\tData: buf,\n\t\t\tErrors: ec.Errors,\n\t\t\tExtensions: ec.Extensions,\t\t}\n\t{{- else }}\n\t\treturn graphql.ErrorResponse(ctx, \"queries are not supported\")\n\t{{- end }}\n}\n\nfunc (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {\n\t{{- if .MutationRoot }}\n\t\tec := executionContext{graphql.GetRequestContext(ctx), e}\n\n\t\tbuf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte {\n\t\t\tdata := ec._{{.MutationRoot.GQLType}}(ctx, op.SelectionSet)\n\t\t\tvar buf bytes.Buffer\n\t\t\tdata.MarshalGQL(&buf)\n\t\t\treturn buf.Bytes()\n\t\t})\n\n\t\treturn &graphql.Response{\n\t\t\tData: buf,\n\t\t\tErrors: ec.Errors,\n\t\t\tExtensions: ec.Extensions,\n\t\t}\n\t{{- else }}\n\t\treturn graphql.ErrorResponse(ctx, \"mutations are not supported\")\n\t{{- end }}\n}\n\nfunc (e *executableSchema) Subscription(ctx context.Context, op *ast.OperationDefinition) func() *graphql.Response {\n\t{{- if .SubscriptionRoot }}\n\t\tec := executionContext{graphql.GetRequestContext(ctx), e}\n\n\t\tnext := ec._{{.SubscriptionRoot.GQLType}}(ctx, op.SelectionSet)\n\t\tif ec.Errors != nil {\n\t\t\treturn graphql.OneShot(&graphql.Response{Data: []byte(\"null\"), Errors: ec.Errors})\n\t\t}\n\n\t\tvar buf bytes.Buffer\n\t\treturn func() *graphql.Response {\n\t\t\tbuf := ec.RequestMiddleware(ctx, func(ctx context.Context) []byte {\n\t\t\t\tbuf.Reset()\n\t\t\t\tdata := next()\n\n\t\t\t\tif data == nil {\n\t\t\t\t\treturn nil\n\t\t\t\t}\n\t\t\t\tdata.MarshalGQL(&buf)\n\t\t\t\treturn buf.Bytes()\n\t\t\t})\n\n\t\t\tif buf == nil {\n\t\t\t\treturn nil\n\t\t\t}\n\n\t\t\treturn &graphql.Response{\n\t\t\t\tData: buf,\n\t\t\t\tErrors: ec.Errors,\n\t\t\t\tExtensions: ec.Extensions,\n\t\t\t}\n\t\t}\n\t{{- else }}\n\t\treturn graphql.OneShot(graphql.ErrorResponse(ctx, \"subscriptions are not supported\"))\n\t{{- end }}\n}\n\ntype executionContext struct {\n\t*graphql.RequestContext\n\t*executableSchema\n}\n\n{{- range $object := .Objects }}\n\t{{ template \"object.gotpl\" $object }}\n\n\t{{- range $field := $object.Fields }}\n\t\t{{ template \"field.gotpl\" $field }}\n\t{{ end }}\n{{- end}}\n\n{{- range $interface := .Interfaces }}\n\t{{ template \"interface.gotpl\" $interface }}\n{{- end }}\n\n{{- range $input := .Inputs }}\n\t{{ template \"input.gotpl\" $input }}\n{{- end }}\n\nfunc (ec *executionContext) FieldMiddleware(ctx context.Context, obj interface{}, next graphql.Resolver) (ret interface{}) {\n\tdefer func() {\n\t\tif r := recover(); r != nil {\n\t\t\tec.Error(ctx, ec.Recover(ctx, r))\n\t\t\tret = nil\n\t\t}\n\t}()\n\t{{- if .Directives }}\n\trctx := graphql.GetResolverContext(ctx)\n\tfor _, d := range rctx.Field.Definition.Directives {\n\t\tswitch d.Name {\n\t\t{{- range $directive := .Directives }}\n\t\tcase \"{{$directive.Name}}\":\n\t\t\tif ec.directives.{{$directive.Name|ucFirst}} != nil {\n\t\t\t\t{{- if $directive.Args }}\n\t\t\t\t\trawArgs := d.ArgumentMap(ec.Variables)\n\t\t\t\t\targs, err := {{ $directive.ArgsFunc }}(rawArgs)\n\t\t\t\t\tif err != nil {\n\t\t\t\t\t\tec.Error(ctx, err)\n\t\t\t\t\t\treturn nil\n\t\t\t\t\t}\n\t\t\t\t{{- end }}\n\t\t\t\tn := next\n\t\t\t\tnext = func(ctx context.Context) (interface{}, error) {\n\t\t\t\t\treturn ec.directives.{{$directive.Name|ucFirst}}({{$directive.CallArgs}})\n\t\t\t\t}\n\t\t\t}\n\t\t{{- end }}\n\t\t}\n\t}\n\t{{- end }}\n\tres, err := ec.ResolverMiddleware(ctx, next)\n\tif err != nil {\n\t\tec.Error(ctx, err)\n\t\treturn nil\n\t}\n\treturn res\n}\n\nfunc (ec *executionContext) introspectSchema() *introspection.Schema {\n\treturn introspection.WrapSchema(parsedSchema)\n}\n\nfunc (ec *executionContext) introspectType(name string) *introspection.Type {\n\treturn introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name])\n}\n\nvar parsedSchema = gqlparser.MustLoadSchema(\n\t{{- range $filename, $schema := .SchemaRaw }}\n\t\t&ast.Source{Name: {{$filename|quote}}, Input: {{$schema|rawQuote}}},\n\t{{- end }}\n)\n", "input.gotpl": "\t{{- if .IsMarshaled }}\n\tfunc Unmarshal{{ .GQLType }}(v interface{}) ({{.FullName}}, error) {\n\t\tvar it {{.FullName}}\n\t\tvar asMap = v.(map[string]interface{})\n\t\t{{ range $field := .Fields}}\n\t\t\t{{- if $field.Default}}\n\t\t\t\tif _, present := asMap[{{$field.GQLName|quote}}] ; !present {\n\t\t\t\t\tasMap[{{$field.GQLName|quote}}] = {{ $field.Default | dump }}\n\t\t\t\t}\n\t\t\t{{- end}}\n\t\t{{- end }}\n\n\t\tfor k, v := range asMap {\n\t\t\tswitch k {\n\t\t\t{{- range $field := .Fields }}\n\t\t\tcase {{$field.GQLName|quote}}:\n\t\t\t\tvar err error\n\t\t\t\t{{ $field.Unmarshal (print \"it.\" $field.GoFieldName) \"v\" }}\n\t\t\t\tif err != nil {\n\t\t\t\t\treturn it, err\n\t\t\t\t}\n\t\t\t{{- end }}\n\t\t\t}\n\t\t}\n\n\t\treturn it, nil\n\t}\n\t{{- end }}\n", "interface.gotpl": "{{- $interface := . }}\n\nfunc (ec *executionContext) _{{$interface.GQLType}}(ctx context.Context, sel ast.SelectionSet, obj *{{$interface.FullName}}) graphql.Marshaler {\n\tswitch obj := (*obj).(type) {\n\tcase nil:\n\t\treturn graphql.Null\n\t{{- range $implementor := $interface.Implementors }}\n\t\t{{- if $implementor.ValueReceiver }}\n\t\t\tcase {{$implementor.FullName}}:\n\t\t\t\treturn ec._{{$implementor.GQLType}}(ctx, sel, &obj)\n\t\t{{- end}}\n\t\tcase *{{$implementor.FullName}}:\n\t\t\treturn ec._{{$implementor.GQLType}}(ctx, sel, obj)\n\t{{- end }}\n\tdefault:\n\t\tpanic(fmt.Errorf(\"unexpected type %T\", obj))\n\t}\n}\n", diff --git a/codegen/templates/field.gotpl b/codegen/templates/field.gotpl index ab2d9fa6287..a39e5d50c45 100644 --- a/codegen/templates/field.gotpl +++ b/codegen/templates/field.gotpl @@ -35,6 +35,7 @@ {{ else }} // nolint: vetshadow func (ec *executionContext) _{{$object.GQLType}}_{{$field.GQLName}}(ctx context.Context, field graphql.CollectedField, {{if not $object.Root}}obj *{{$object.FullName}}{{end}}) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) {{- if $field.Args }} rawArgs := field.ArgumentMap(ec.Variables) args, err := {{ $field.ArgsFunc }}(rawArgs) @@ -49,7 +50,7 @@ Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(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 @@ -75,6 +76,7 @@ } res := resTmp.({{$field.Signature}}) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) {{ $field.WriteJson }} } {{ end }} diff --git a/codegen/testserver/generated.go b/codegen/testserver/generated.go index 0c4f7f80a93..250b4254840 100644 --- a/codegen/testserver/generated.go +++ b/codegen/testserver/generated.go @@ -923,13 +923,14 @@ func (ec *executionContext) _Circle(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) _Circle_radius(ctx context.Context, field graphql.CollectedField, obj *Circle) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Circle", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -940,18 +941,20 @@ func (ec *executionContext) _Circle_radius(ctx context.Context, field graphql.Co } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } // nolint: vetshadow func (ec *executionContext) _Circle_area(ctx context.Context, field graphql.CollectedField, obj *Circle) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Circle", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -962,6 +965,7 @@ func (ec *executionContext) _Circle_area(ctx context.Context, field graphql.Coll } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } @@ -996,13 +1000,14 @@ func (ec *executionContext) _EmbeddedPointer(ctx context.Context, sel ast.Select // nolint: vetshadow func (ec *executionContext) _EmbeddedPointer_ID(ctx context.Context, field graphql.CollectedField, obj *EmbeddedPointerModel) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "EmbeddedPointer", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1013,18 +1018,20 @@ func (ec *executionContext) _EmbeddedPointer_ID(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _EmbeddedPointer_Title(ctx context.Context, field graphql.CollectedField, obj *EmbeddedPointerModel) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "EmbeddedPointer", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1035,6 +1042,7 @@ func (ec *executionContext) _EmbeddedPointer_Title(ctx context.Context, field gr } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1082,13 +1090,14 @@ func (ec *executionContext) _Error(ctx context.Context, sel ast.SelectionSet, ob // nolint: vetshadow func (ec *executionContext) _Error_id(ctx context.Context, field graphql.CollectedField, obj *Error) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Error", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1102,18 +1111,20 @@ func (ec *executionContext) _Error_id(ctx context.Context, field graphql.Collect } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _Error_errorOnNonRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Error", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1124,18 +1135,20 @@ func (ec *executionContext) _Error_errorOnNonRequiredField(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Error_errorOnRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Error", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1149,18 +1162,20 @@ func (ec *executionContext) _Error_errorOnRequiredField(ctx context.Context, fie } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Error_nilOnRequiredField(ctx context.Context, field graphql.CollectedField, obj *Error) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Error", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1174,6 +1189,7 @@ func (ec *executionContext) _Error_nilOnRequiredField(ctx context.Context, field } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1218,13 +1234,14 @@ func (ec *executionContext) _ForcedResolver(ctx context.Context, sel ast.Selecti // nolint: vetshadow func (ec *executionContext) _ForcedResolver_field(ctx context.Context, field graphql.CollectedField, obj *ForcedResolver) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "ForcedResolver", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1235,6 +1252,7 @@ func (ec *executionContext) _ForcedResolver_field(ctx context.Context, field gra } res := resTmp.(*Circle) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1275,13 +1293,14 @@ func (ec *executionContext) _InnerObject(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) _InnerObject_id(ctx context.Context, field graphql.CollectedField, obj *InnerObject) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "InnerObject", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1295,6 +1314,7 @@ func (ec *executionContext) _InnerObject_id(ctx context.Context, field graphql.C } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } @@ -1330,13 +1350,14 @@ func (ec *executionContext) _InvalidIdentifier(ctx context.Context, sel ast.Sele // nolint: vetshadow func (ec *executionContext) _InvalidIdentifier_id(ctx context.Context, field graphql.CollectedField, obj *invalid_packagename.InvalidIdentifier) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "InvalidIdentifier", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1350,6 +1371,7 @@ func (ec *executionContext) _InvalidIdentifier_id(ctx context.Context, field gra } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } @@ -1385,13 +1407,14 @@ func (ec *executionContext) _It(ctx context.Context, sel ast.SelectionSet, obj * // nolint: vetshadow func (ec *executionContext) _It_id(ctx context.Context, field graphql.CollectedField, obj *introspection1.It) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "It", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1405,6 +1428,7 @@ func (ec *executionContext) _It_id(ctx context.Context, field graphql.CollectedF } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } @@ -1440,13 +1464,14 @@ func (ec *executionContext) _OuterObject(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) _OuterObject_inner(ctx context.Context, field graphql.CollectedField, obj *OuterObject) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "OuterObject", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1460,6 +1485,7 @@ func (ec *executionContext) _OuterObject_inner(ctx context.Context, field graphq } res := resTmp.(InnerObject) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._InnerObject(ctx, field.Selections, &res) } @@ -1590,13 +1616,14 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_invalidIdentifier(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1607,6 +1634,7 @@ func (ec *executionContext) _Query_invalidIdentifier(ctx context.Context, field } res := resTmp.(*invalid_packagename.InvalidIdentifier) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1617,13 +1645,14 @@ func (ec *executionContext) _Query_invalidIdentifier(ctx context.Context, field // nolint: vetshadow func (ec *executionContext) _Query_collision(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1634,6 +1663,7 @@ func (ec *executionContext) _Query_collision(ctx context.Context, field graphql. } res := resTmp.(*introspection1.It) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1644,6 +1674,7 @@ func (ec *executionContext) _Query_collision(ctx context.Context, field graphql. // nolint: vetshadow func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_mapInput_args(rawArgs) if err != nil { @@ -1656,7 +1687,7 @@ func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.C Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1667,6 +1698,7 @@ func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.C } res := resTmp.(*bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1676,6 +1708,7 @@ func (ec *executionContext) _Query_mapInput(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_recursive_args(rawArgs) if err != nil { @@ -1688,7 +1721,7 @@ func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql. Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1699,6 +1732,7 @@ func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql. } res := resTmp.(*bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1708,6 +1742,7 @@ func (ec *executionContext) _Query_recursive(ctx context.Context, field graphql. // nolint: vetshadow func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_nestedInputs_args(rawArgs) if err != nil { @@ -1720,7 +1755,7 @@ func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graph Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1731,6 +1766,7 @@ func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graph } res := resTmp.(*bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1740,13 +1776,14 @@ func (ec *executionContext) _Query_nestedInputs(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) _Query_nestedOutputs(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1757,6 +1794,7 @@ func (ec *executionContext) _Query_nestedOutputs(ctx context.Context, field grap } res := resTmp.([][]*OuterObject) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1830,6 +1868,7 @@ func (ec *executionContext) _Query_nestedOutputs(ctx context.Context, field grap // nolint: vetshadow func (ec *executionContext) _Query_keywords(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_keywords_args(rawArgs) if err != nil { @@ -1842,7 +1881,7 @@ func (ec *executionContext) _Query_keywords(ctx context.Context, field graphql.C Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1856,18 +1895,20 @@ func (ec *executionContext) _Query_keywords(ctx context.Context, field graphql.C } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) _Query_shapes(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1878,6 +1919,7 @@ func (ec *executionContext) _Query_shapes(ctx context.Context, field graphql.Col } res := resTmp.([]*Shape) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1920,13 +1962,14 @@ func (ec *executionContext) _Query_shapes(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query_errorBubble(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1937,6 +1980,7 @@ func (ec *executionContext) _Query_errorBubble(ctx context.Context, field graphq } res := resTmp.(*Error) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1947,13 +1991,14 @@ func (ec *executionContext) _Query_errorBubble(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) _Query_valid(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1967,11 +2012,13 @@ func (ec *executionContext) _Query_valid(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_user_args(rawArgs) if err != nil { @@ -1984,7 +2031,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1998,12 +2045,14 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle } res := resTmp.(User) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._User(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_nullableArg_args(rawArgs) if err != nil { @@ -2016,7 +2065,7 @@ func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2027,6 +2076,7 @@ func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphq } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2036,6 +2086,7 @@ func (ec *executionContext) _Query_nullableArg(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) _Query_keywordArgs(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_keywordArgs_args(rawArgs) if err != nil { @@ -2048,7 +2099,7 @@ func (ec *executionContext) _Query_keywordArgs(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2062,11 +2113,13 @@ func (ec *executionContext) _Query_keywordArgs(ctx context.Context, field graphq } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -2079,7 +2132,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2090,6 +2143,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2100,13 +2154,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2117,6 +2172,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2158,13 +2214,14 @@ func (ec *executionContext) _Rectangle(ctx context.Context, sel ast.SelectionSet // nolint: vetshadow func (ec *executionContext) _Rectangle_length(ctx context.Context, field graphql.CollectedField, obj *Rectangle) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Rectangle", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2175,18 +2232,20 @@ func (ec *executionContext) _Rectangle_length(ctx context.Context, field graphql } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } // nolint: vetshadow func (ec *executionContext) _Rectangle_width(ctx context.Context, field graphql.CollectedField, obj *Rectangle) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Rectangle", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2197,18 +2256,20 @@ func (ec *executionContext) _Rectangle_width(ctx context.Context, field graphql. } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } // nolint: vetshadow func (ec *executionContext) _Rectangle_area(ctx context.Context, field graphql.CollectedField, obj *Rectangle) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Rectangle", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2219,6 +2280,7 @@ func (ec *executionContext) _Rectangle_area(ctx context.Context, field graphql.C } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } @@ -2333,13 +2395,14 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2353,18 +2416,20 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _User_friends(ctx context.Context, field graphql.CollectedField, obj *User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2378,6 +2443,7 @@ func (ec *executionContext) _User_friends(ctx context.Context, field graphql.Col } res := resTmp.([]User) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2458,13 +2524,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2478,18 +2545,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2500,18 +2569,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2525,6 +2596,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -2539,13 +2611,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2559,6 +2632,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2636,13 +2710,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2656,18 +2731,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2678,18 +2755,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2703,18 +2782,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2725,6 +2806,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -2779,13 +2861,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2799,18 +2882,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2821,18 +2906,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2846,6 +2933,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2884,13 +2972,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2904,6 +2993,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -2917,13 +3007,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2937,18 +3028,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2959,6 +3052,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -3003,13 +3097,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3023,18 +3118,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3045,18 +3142,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3070,6 +3169,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -3083,13 +3183,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3100,6 +3201,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3153,13 +3255,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3173,6 +3276,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3211,13 +3315,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3231,6 +3336,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -3244,13 +3350,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3261,6 +3368,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3271,13 +3379,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3288,6 +3397,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3298,13 +3408,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3318,6 +3429,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3402,13 +3514,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3422,18 +3535,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3444,6 +3559,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3453,13 +3569,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3470,11 +3587,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -3487,7 +3606,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3498,6 +3617,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3536,13 +3656,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3553,6 +3674,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3591,13 +3713,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3608,6 +3731,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3646,6 +3770,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -3658,7 +3783,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3669,6 +3794,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3707,13 +3833,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3724,6 +3851,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3762,13 +3890,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3779,6 +3908,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/codegen/testserver/generated_test.go b/codegen/testserver/generated_test.go index e73f237edc1..d7d034a784c 100644 --- a/codegen/testserver/generated_test.go +++ b/codegen/testserver/generated_test.go @@ -41,7 +41,7 @@ type testTracer struct { } func (tt *testTracer) StartOperationExecution(ctx context.Context) context.Context { - line := fmt.Sprintf("request:start:%d", tt.id) + line := fmt.Sprintf("op:start:%d", tt.id) tracerLogs, _ := ctx.Value("tracer").([]string) ctx = context.WithValue(ctx, "tracer", append(tracerLogs, line)) @@ -49,13 +49,26 @@ func (tt *testTracer) StartOperationExecution(ctx context.Context) context.Conte return ctx } -func (tt *testTracer) EndOperationExecution(ctx context.Context) { - tt.append(fmt.Sprintf("request:end:%d", tt.id)) +func (tt *testTracer) StartFieldExecution(ctx context.Context, field graphql.CollectedField) context.Context { + line := fmt.Sprintf("field'a:start:%d:%s", tt.id, field.Name) + + tracerLogs, _ := ctx.Value("tracer").([]string) + ctx = context.WithValue(ctx, "tracer", append(tracerLogs, line)) + tt.append(line) + return ctx } -func (tt *testTracer) StartFieldExecution(ctx context.Context) context.Context { - rc := graphql.GetResolverContext(ctx) - line := fmt.Sprintf("resolver:start:%d:%v", tt.id, rc.Path()) +func (tt *testTracer) StartFieldResolverExecution(ctx context.Context, rc *graphql.ResolverContext) context.Context { + line := fmt.Sprintf("field'b:start:%d:%v", tt.id, rc.Path()) + + tracerLogs, _ := ctx.Value("tracer").([]string) + ctx = context.WithValue(ctx, "tracer", append(tracerLogs, line)) + tt.append(line) + return ctx +} + +func (tt *testTracer) StartFieldChildExecution(ctx context.Context) context.Context { + line := fmt.Sprintf("field'c:start:%d", tt.id) tracerLogs, _ := ctx.Value("tracer").([]string) ctx = context.WithValue(ctx, "tracer", append(tracerLogs, line)) @@ -64,7 +77,11 @@ func (tt *testTracer) StartFieldExecution(ctx context.Context) context.Context { } func (tt *testTracer) EndFieldExecution(ctx context.Context) { - tt.append(fmt.Sprintf("resolver:end:%d", tt.id)) + tt.append(fmt.Sprintf("field:end:%d", tt.id)) +} + +func (tt *testTracer) EndOperationExecution(ctx context.Context) { + tt.append(fmt.Sprintf("op:end:%d", tt.id)) } func TestGeneratedServer(t *testing.T) { @@ -198,22 +215,25 @@ func TestGeneratedServer(t *testing.T) { require.NoError(t, err) require.True(t, called) assert.Equal(t, []string{ - "request:start:1", - "request:start:2", - "resolver:start:1:[user]", - "resolver:start:2:[user]", - "resolver:start:1:[user id]", - "resolver:start:2:[user id]", - "resolver:end:2", - "resolver:end:1", - "resolver:start:1:[user friends]", - "resolver:start:2:[user friends]", - "resolver:end:2", - "resolver:end:1", - "resolver:end:2", - "resolver:end:1", - "request:end:2", - "request:end:1", + "op:start:1", "op:start:2", + + "field'a:start:1:user", "field'a:start:2:user", + "field'b:start:1:[user]", "field'b:start:2:[user]", + "field'c:start:1", "field'c:start:2", + + "field'a:start:1:id", "field'a:start:2:id", + "field'b:start:1:[user id]", "field'b:start:2:[user id]", + "field'c:start:1", "field'c:start:2", + "field:end:2", "field:end:1", + + "field'a:start:1:friends", "field'a:start:2:friends", + "field'b:start:1:[user friends]", "field'b:start:2:[user friends]", + "field'c:start:1", "field'c:start:2", + "field:end:2", "field:end:1", + + "field:end:2", "field:end:1", + + "op:end:2", "op:end:1", }, tracerLog) }) diff --git a/example/chat/generated.go b/example/chat/generated.go index 663681c7486..22578babc1e 100644 --- a/example/chat/generated.go +++ b/example/chat/generated.go @@ -386,13 +386,14 @@ func (ec *executionContext) _Chatroom(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _Chatroom_name(ctx context.Context, field graphql.CollectedField, obj *Chatroom) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Chatroom", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -406,18 +407,20 @@ func (ec *executionContext) _Chatroom_name(ctx context.Context, field graphql.Co } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Chatroom_messages(ctx context.Context, field graphql.CollectedField, obj *Chatroom) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Chatroom", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -431,6 +434,7 @@ func (ec *executionContext) _Chatroom_messages(ctx context.Context, field graphq } res := resTmp.([]Message) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -514,13 +518,14 @@ func (ec *executionContext) _Message(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _Message_id(ctx context.Context, field graphql.CollectedField, obj *Message) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Message", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -534,18 +539,20 @@ func (ec *executionContext) _Message_id(ctx context.Context, field graphql.Colle } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _Message_text(ctx context.Context, field graphql.CollectedField, obj *Message) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Message", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -559,18 +566,20 @@ func (ec *executionContext) _Message_text(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Message_createdBy(ctx context.Context, field graphql.CollectedField, obj *Message) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Message", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -584,18 +593,20 @@ func (ec *executionContext) _Message_createdBy(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Message_createdAt(ctx context.Context, field graphql.CollectedField, obj *Message) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Message", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -609,6 +620,7 @@ func (ec *executionContext) _Message_createdAt(ctx context.Context, field graphq } res := resTmp.(time.Time) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalTime(res) } @@ -648,6 +660,7 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) // nolint: vetshadow func (ec *executionContext) _Mutation_post(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Mutation_post_args(rawArgs) if err != nil { @@ -660,7 +673,7 @@ func (ec *executionContext) _Mutation_post(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -674,6 +687,7 @@ func (ec *executionContext) _Mutation_post(ctx context.Context, field graphql.Co } res := resTmp.(Message) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Message(ctx, field.Selections, &res) } @@ -720,6 +734,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_room(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_room_args(rawArgs) if err != nil { @@ -732,7 +747,7 @@ func (ec *executionContext) _Query_room(ctx context.Context, field graphql.Colle Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -743,6 +758,7 @@ func (ec *executionContext) _Query_room(ctx context.Context, field graphql.Colle } res := resTmp.(*Chatroom) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -753,6 +769,7 @@ func (ec *executionContext) _Query_room(ctx context.Context, field graphql.Colle // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -765,7 +782,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -776,6 +793,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -786,13 +804,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -803,6 +822,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -907,13 +927,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -927,18 +948,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -949,18 +972,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -974,6 +999,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -988,13 +1014,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1008,6 +1035,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1085,13 +1113,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1105,18 +1134,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1127,18 +1158,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1152,18 +1185,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1174,6 +1209,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1228,13 +1264,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1248,18 +1285,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1270,18 +1309,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1295,6 +1336,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1333,13 +1375,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1353,6 +1396,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1366,13 +1410,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1386,18 +1431,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1408,6 +1455,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1452,13 +1500,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1472,18 +1521,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1494,18 +1545,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1519,6 +1572,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1532,13 +1586,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1549,6 +1604,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1602,13 +1658,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1622,6 +1679,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1660,13 +1718,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1680,6 +1739,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1693,13 +1753,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1710,6 +1771,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1720,13 +1782,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1737,6 +1800,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1747,13 +1811,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1767,6 +1832,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1851,13 +1917,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1871,18 +1938,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1893,6 +1962,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1902,13 +1972,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1919,11 +1990,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -1936,7 +2009,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1947,6 +2020,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1985,13 +2059,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2002,6 +2077,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2040,13 +2116,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2057,6 +2134,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2095,6 +2173,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -2107,7 +2186,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2118,6 +2197,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2156,13 +2236,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2173,6 +2254,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2211,13 +2293,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2228,6 +2311,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/example/config/generated.go b/example/config/generated.go index d67ae019e0b..c5357617b51 100644 --- a/example/config/generated.go +++ b/example/config/generated.go @@ -294,6 +294,7 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) // nolint: vetshadow func (ec *executionContext) _Mutation_createTodo(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Mutation_createTodo_args(rawArgs) if err != nil { @@ -306,7 +307,7 @@ func (ec *executionContext) _Mutation_createTodo(ctx context.Context, field grap Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -320,6 +321,7 @@ func (ec *executionContext) _Mutation_createTodo(ctx context.Context, field grap } res := resTmp.(Todo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Todo(ctx, field.Selections, &res) } @@ -369,13 +371,14 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_todos(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -389,6 +392,7 @@ func (ec *executionContext) _Query_todos(ctx context.Context, field graphql.Coll } res := resTmp.([]Todo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -427,6 +431,7 @@ func (ec *executionContext) _Query_todos(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -439,7 +444,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -450,6 +455,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -460,13 +466,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -477,6 +484,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -542,13 +550,14 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -562,18 +571,20 @@ func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.Collecte } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _Todo_databaseId(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -587,18 +598,20 @@ func (ec *executionContext) _Todo_databaseId(ctx context.Context, field graphql. } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -612,18 +625,20 @@ func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.Collec } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -637,18 +652,20 @@ func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.Collec } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) _Todo_user(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -662,6 +679,7 @@ func (ec *executionContext) _Todo_user(ctx context.Context, field graphql.Collec } res := resTmp.(User) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._User(ctx, field.Selections, &res) } @@ -703,13 +721,14 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -723,18 +742,20 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _User_name(ctx context.Context, field graphql.CollectedField, obj *User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -748,6 +769,7 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -795,13 +817,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -815,18 +838,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -837,18 +862,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -862,6 +889,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -876,13 +904,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -896,6 +925,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -973,13 +1003,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -993,18 +1024,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1015,18 +1048,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1040,18 +1075,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1062,6 +1099,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1116,13 +1154,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1136,18 +1175,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1158,18 +1199,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1183,6 +1226,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1221,13 +1265,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1241,6 +1286,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1254,13 +1300,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1274,18 +1321,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1296,6 +1345,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1340,13 +1390,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1360,18 +1411,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1382,18 +1435,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1407,6 +1462,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1420,13 +1476,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1437,6 +1494,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1490,13 +1548,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1510,6 +1569,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1548,13 +1608,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1568,6 +1629,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1581,13 +1643,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1598,6 +1661,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1608,13 +1672,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1625,6 +1690,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1635,13 +1701,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1655,6 +1722,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1739,13 +1807,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1759,18 +1828,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1781,6 +1852,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1790,13 +1862,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1807,11 +1880,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -1824,7 +1899,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1835,6 +1910,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1873,13 +1949,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1890,6 +1967,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1928,13 +2006,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1945,6 +2024,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1983,6 +2063,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -1995,7 +2076,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2006,6 +2087,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2044,13 +2126,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2061,6 +2144,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2099,13 +2183,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2116,6 +2201,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/example/dataloader/generated.go b/example/dataloader/generated.go index 07855ffaa92..553ee72e0b8 100644 --- a/example/dataloader/generated.go +++ b/example/dataloader/generated.go @@ -395,13 +395,14 @@ func (ec *executionContext) _Address(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _Address_id(ctx context.Context, field graphql.CollectedField, obj *Address) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Address", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -415,18 +416,20 @@ func (ec *executionContext) _Address_id(ctx context.Context, field graphql.Colle } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _Address_street(ctx context.Context, field graphql.CollectedField, obj *Address) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Address", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -440,18 +443,20 @@ func (ec *executionContext) _Address_street(ctx context.Context, field graphql.C } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Address_country(ctx context.Context, field graphql.CollectedField, obj *Address) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Address", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -465,6 +470,7 @@ func (ec *executionContext) _Address_country(ctx context.Context, field graphql. } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -518,13 +524,14 @@ func (ec *executionContext) _Customer(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _Customer_id(ctx context.Context, field graphql.CollectedField, obj *Customer) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Customer", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -538,18 +545,20 @@ func (ec *executionContext) _Customer_id(ctx context.Context, field graphql.Coll } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _Customer_name(ctx context.Context, field graphql.CollectedField, obj *Customer) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Customer", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -563,18 +572,20 @@ func (ec *executionContext) _Customer_name(ctx context.Context, field graphql.Co } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Customer_address(ctx context.Context, field graphql.CollectedField, obj *Customer) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Customer", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -585,6 +596,7 @@ func (ec *executionContext) _Customer_address(ctx context.Context, field graphql } res := resTmp.(*Address) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -595,13 +607,14 @@ func (ec *executionContext) _Customer_address(ctx context.Context, field graphql // nolint: vetshadow func (ec *executionContext) _Customer_orders(ctx context.Context, field graphql.CollectedField, obj *Customer) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Customer", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -612,6 +625,7 @@ func (ec *executionContext) _Customer_orders(ctx context.Context, field graphql. } res := resTmp.([]Order) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -680,13 +694,14 @@ func (ec *executionContext) _Item(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _Item_name(ctx context.Context, field graphql.CollectedField, obj *Item) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Item", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -700,6 +715,7 @@ func (ec *executionContext) _Item_name(ctx context.Context, field graphql.Collec } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -752,13 +768,14 @@ func (ec *executionContext) _Order(ctx context.Context, sel ast.SelectionSet, ob // nolint: vetshadow func (ec *executionContext) _Order_id(ctx context.Context, field graphql.CollectedField, obj *Order) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Order", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -772,18 +789,20 @@ func (ec *executionContext) _Order_id(ctx context.Context, field graphql.Collect } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _Order_date(ctx context.Context, field graphql.CollectedField, obj *Order) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Order", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -797,18 +816,20 @@ func (ec *executionContext) _Order_date(ctx context.Context, field graphql.Colle } res := resTmp.(time.Time) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalTime(res) } // nolint: vetshadow func (ec *executionContext) _Order_amount(ctx context.Context, field graphql.CollectedField, obj *Order) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Order", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -822,18 +843,20 @@ func (ec *executionContext) _Order_amount(ctx context.Context, field graphql.Col } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } // nolint: vetshadow func (ec *executionContext) _Order_items(ctx context.Context, field graphql.CollectedField, obj *Order) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Order", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -844,6 +867,7 @@ func (ec *executionContext) _Order_items(ctx context.Context, field graphql.Coll } res := resTmp.([]Item) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -934,13 +958,14 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_customers(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -951,6 +976,7 @@ func (ec *executionContext) _Query_customers(ctx context.Context, field graphql. } res := resTmp.([]Customer) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -989,6 +1015,7 @@ func (ec *executionContext) _Query_customers(ctx context.Context, field graphql. // nolint: vetshadow func (ec *executionContext) _Query_torture1d(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_torture1d_args(rawArgs) if err != nil { @@ -1001,7 +1028,7 @@ func (ec *executionContext) _Query_torture1d(ctx context.Context, field graphql. Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1012,6 +1039,7 @@ func (ec *executionContext) _Query_torture1d(ctx context.Context, field graphql. } res := resTmp.([]Customer) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1050,6 +1078,7 @@ func (ec *executionContext) _Query_torture1d(ctx context.Context, field graphql. // nolint: vetshadow func (ec *executionContext) _Query_torture2d(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_torture2d_args(rawArgs) if err != nil { @@ -1062,7 +1091,7 @@ func (ec *executionContext) _Query_torture2d(ctx context.Context, field graphql. Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1073,6 +1102,7 @@ func (ec *executionContext) _Query_torture2d(ctx context.Context, field graphql. } res := resTmp.([][]Customer) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1142,6 +1172,7 @@ func (ec *executionContext) _Query_torture2d(ctx context.Context, field graphql. // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -1154,7 +1185,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1165,6 +1196,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1175,13 +1207,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1192,6 +1225,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1244,13 +1278,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1264,18 +1299,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1286,18 +1323,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1311,6 +1350,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -1325,13 +1365,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1345,6 +1386,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1422,13 +1464,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1442,18 +1485,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1464,18 +1509,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1489,18 +1536,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1511,6 +1560,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1565,13 +1615,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1585,18 +1636,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1607,18 +1660,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1632,6 +1687,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1670,13 +1726,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1690,6 +1747,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1703,13 +1761,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1723,18 +1782,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1745,6 +1806,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1789,13 +1851,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1809,18 +1872,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1831,18 +1896,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1856,6 +1923,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1869,13 +1937,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1886,6 +1955,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1939,13 +2009,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1959,6 +2030,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1997,13 +2069,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2017,6 +2090,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -2030,13 +2104,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2047,6 +2122,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2057,13 +2133,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2074,6 +2151,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2084,13 +2162,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2104,6 +2183,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2188,13 +2268,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2208,18 +2289,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2230,6 +2313,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2239,13 +2323,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2256,11 +2341,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -2273,7 +2360,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2284,6 +2371,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2322,13 +2410,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2339,6 +2428,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2377,13 +2467,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2394,6 +2485,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2432,6 +2524,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -2444,7 +2537,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2455,6 +2548,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2493,13 +2587,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2510,6 +2605,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2548,13 +2644,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2565,6 +2662,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/example/scalars/generated.go b/example/scalars/generated.go index d59c766f5f7..4dbf19ee075 100644 --- a/example/scalars/generated.go +++ b/example/scalars/generated.go @@ -326,13 +326,14 @@ func (ec *executionContext) _Address(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _Address_id(ctx context.Context, field graphql.CollectedField, obj *model.Address) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Address", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -346,18 +347,20 @@ func (ec *executionContext) _Address_id(ctx context.Context, field graphql.Colle } res := resTmp.(external.ObjectID) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return model.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _Address_location(ctx context.Context, field graphql.CollectedField, obj *model.Address) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Address", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -368,6 +371,7 @@ func (ec *executionContext) _Address_location(ctx context.Context, field graphql } res := resTmp.(*model.Point) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -426,6 +430,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_user_args(rawArgs) if err != nil { @@ -438,7 +443,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -449,6 +454,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle } res := resTmp.(*model.User) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -459,6 +465,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle // nolint: vetshadow func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_search_args(rawArgs) if err != nil { @@ -471,7 +478,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -485,6 +492,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col } res := resTmp.([]model.User) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -523,6 +531,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -535,7 +544,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -546,6 +555,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -556,13 +566,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -573,6 +584,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -648,13 +660,14 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -668,18 +681,20 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte } res := resTmp.(external.ObjectID) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return model.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _User_name(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -693,18 +708,20 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _User_created(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -715,18 +732,20 @@ func (ec *executionContext) _User_created(ctx context.Context, field graphql.Col } res := resTmp.(time.Time) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return model.MarshalTimestamp(res) } // nolint: vetshadow func (ec *executionContext) _User_isBanned(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -740,18 +759,20 @@ func (ec *executionContext) _User_isBanned(ctx context.Context, field graphql.Co } res := resTmp.(model.Banned) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(bool(res)) } // nolint: vetshadow func (ec *executionContext) _User_primitiveResolver(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -765,18 +786,20 @@ func (ec *executionContext) _User_primitiveResolver(ctx context.Context, field g } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _User_customResolver(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -790,18 +813,20 @@ func (ec *executionContext) _User_customResolver(ctx context.Context, field grap } res := resTmp.(model.Point) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return res } // nolint: vetshadow func (ec *executionContext) _User_address(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -812,19 +837,21 @@ func (ec *executionContext) _User_address(ctx context.Context, field graphql.Col } res := resTmp.(model.Address) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Address(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _User_tier(ctx context.Context, field graphql.CollectedField, obj *model.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -835,6 +862,7 @@ func (ec *executionContext) _User_tier(ctx context.Context, field graphql.Collec } res := resTmp.(model.Tier) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return res } @@ -882,13 +910,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -902,18 +931,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -924,18 +955,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -949,6 +982,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -963,13 +997,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -983,6 +1018,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1060,13 +1096,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1080,18 +1117,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1102,18 +1141,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1127,18 +1168,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1149,6 +1192,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1203,13 +1247,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1223,18 +1268,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1245,18 +1292,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1270,6 +1319,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1308,13 +1358,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1328,6 +1379,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1341,13 +1393,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1361,18 +1414,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1383,6 +1438,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1427,13 +1483,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1447,18 +1504,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1469,18 +1528,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1494,6 +1555,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1507,13 +1569,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1524,6 +1587,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1577,13 +1641,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1597,6 +1662,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1635,13 +1701,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1655,6 +1722,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1668,13 +1736,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1685,6 +1754,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1695,13 +1765,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1712,6 +1783,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1722,13 +1794,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1742,6 +1815,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1826,13 +1900,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1846,18 +1921,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1868,6 +1945,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1877,13 +1955,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1894,11 +1973,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -1911,7 +1992,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1922,6 +2003,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1960,13 +2042,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1977,6 +2060,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2015,13 +2099,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2032,6 +2117,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2070,6 +2156,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -2082,7 +2169,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2093,6 +2180,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2131,13 +2219,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2148,6 +2237,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2186,13 +2276,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2203,6 +2294,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/example/selection/generated.go b/example/selection/generated.go index 705437f68d5..7b426244864 100644 --- a/example/selection/generated.go +++ b/example/selection/generated.go @@ -257,13 +257,14 @@ func (ec *executionContext) _Like(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _Like_reaction(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Like", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -277,18 +278,20 @@ func (ec *executionContext) _Like_reaction(ctx context.Context, field graphql.Co } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Like_sent(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Like", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -302,18 +305,20 @@ func (ec *executionContext) _Like_sent(ctx context.Context, field graphql.Collec } res := resTmp.(time.Time) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalTime(res) } // nolint: vetshadow func (ec *executionContext) _Like_selection(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Like", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -324,6 +329,7 @@ func (ec *executionContext) _Like_selection(ctx context.Context, field graphql.C } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -338,13 +344,14 @@ func (ec *executionContext) _Like_selection(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) _Like_collected(ctx context.Context, field graphql.CollectedField, obj *Like) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Like", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -355,6 +362,7 @@ func (ec *executionContext) _Like_collected(ctx context.Context, field graphql.C } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -408,13 +416,14 @@ func (ec *executionContext) _Post(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _Post_message(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Post", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -428,18 +437,20 @@ func (ec *executionContext) _Post_message(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Post_sent(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Post", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -453,18 +464,20 @@ func (ec *executionContext) _Post_sent(ctx context.Context, field graphql.Collec } res := resTmp.(time.Time) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalTime(res) } // nolint: vetshadow func (ec *executionContext) _Post_selection(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Post", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -475,6 +488,7 @@ func (ec *executionContext) _Post_selection(ctx context.Context, field graphql.C } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -489,13 +503,14 @@ func (ec *executionContext) _Post_selection(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) _Post_collected(ctx context.Context, field graphql.CollectedField, obj *Post) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Post", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -506,6 +521,7 @@ func (ec *executionContext) _Post_collected(ctx context.Context, field graphql.C } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -560,13 +576,14 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -577,6 +594,7 @@ func (ec *executionContext) _Query_events(ctx context.Context, field graphql.Col } res := resTmp.([]Event) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -615,6 +633,7 @@ func (ec *executionContext) _Query_events(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -627,7 +646,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -638,6 +657,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -648,13 +668,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -665,6 +686,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -717,13 +739,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -737,18 +760,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -759,18 +784,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -784,6 +811,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -798,13 +826,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -818,6 +847,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -895,13 +925,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -915,18 +946,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -937,18 +970,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -962,18 +997,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -984,6 +1021,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1038,13 +1076,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1058,18 +1097,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1080,18 +1121,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1105,6 +1148,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1143,13 +1187,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1163,6 +1208,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1176,13 +1222,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1196,18 +1243,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1218,6 +1267,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1262,13 +1312,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1282,18 +1333,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1304,18 +1357,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1329,6 +1384,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1342,13 +1398,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1359,6 +1416,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1412,13 +1470,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1432,6 +1491,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1470,13 +1530,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1490,6 +1551,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1503,13 +1565,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1520,6 +1583,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1530,13 +1594,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1547,6 +1612,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1557,13 +1623,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1577,6 +1644,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1661,13 +1729,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1681,18 +1750,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1703,6 +1774,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1712,13 +1784,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1729,11 +1802,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -1746,7 +1821,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1757,6 +1832,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1795,13 +1871,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1812,6 +1889,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1850,13 +1928,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1867,6 +1946,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1905,6 +1985,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -1917,7 +1998,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1928,6 +2009,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1966,13 +2048,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1983,6 +2066,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2021,13 +2105,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2038,6 +2123,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/example/starwars/generated.go b/example/starwars/generated.go index eaf8f37392e..1496acc7c78 100644 --- a/example/starwars/generated.go +++ b/example/starwars/generated.go @@ -881,13 +881,14 @@ func (ec *executionContext) _Droid(ctx context.Context, sel ast.SelectionSet, ob // nolint: vetshadow func (ec *executionContext) _Droid_id(ctx context.Context, field graphql.CollectedField, obj *Droid) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Droid", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -901,18 +902,20 @@ func (ec *executionContext) _Droid_id(ctx context.Context, field graphql.Collect } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _Droid_name(ctx context.Context, field graphql.CollectedField, obj *Droid) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Droid", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -926,18 +929,20 @@ func (ec *executionContext) _Droid_name(ctx context.Context, field graphql.Colle } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Droid_friends(ctx context.Context, field graphql.CollectedField, obj *Droid) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Droid", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -948,6 +953,7 @@ func (ec *executionContext) _Droid_friends(ctx context.Context, field graphql.Co } res := resTmp.([]Character) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -986,6 +992,7 @@ func (ec *executionContext) _Droid_friends(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) _Droid_friendsConnection(ctx context.Context, field graphql.CollectedField, obj *Droid) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Droid_friendsConnection_args(rawArgs) if err != nil { @@ -998,7 +1005,7 @@ func (ec *executionContext) _Droid_friendsConnection(ctx context.Context, field Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1012,19 +1019,21 @@ func (ec *executionContext) _Droid_friendsConnection(ctx context.Context, field } res := resTmp.(FriendsConnection) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._FriendsConnection(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _Droid_appearsIn(ctx context.Context, field graphql.CollectedField, obj *Droid) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Droid", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1038,6 +1047,7 @@ func (ec *executionContext) _Droid_appearsIn(ctx context.Context, field graphql. } res := resTmp.([]Episode) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -1052,13 +1062,14 @@ func (ec *executionContext) _Droid_appearsIn(ctx context.Context, field graphql. // nolint: vetshadow func (ec *executionContext) _Droid_primaryFunction(ctx context.Context, field graphql.CollectedField, obj *Droid) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Droid", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1069,6 +1080,7 @@ func (ec *executionContext) _Droid_primaryFunction(ctx context.Context, field gr } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1122,13 +1134,14 @@ func (ec *executionContext) _FriendsConnection(ctx context.Context, sel ast.Sele // nolint: vetshadow func (ec *executionContext) _FriendsConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *FriendsConnection) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "FriendsConnection", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1142,18 +1155,20 @@ func (ec *executionContext) _FriendsConnection_totalCount(ctx context.Context, f } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _FriendsConnection_edges(ctx context.Context, field graphql.CollectedField, obj *FriendsConnection) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "FriendsConnection", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1164,6 +1179,7 @@ func (ec *executionContext) _FriendsConnection_edges(ctx context.Context, field } res := resTmp.([]FriendsEdge) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1202,13 +1218,14 @@ func (ec *executionContext) _FriendsConnection_edges(ctx context.Context, field // nolint: vetshadow func (ec *executionContext) _FriendsConnection_friends(ctx context.Context, field graphql.CollectedField, obj *FriendsConnection) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "FriendsConnection", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1219,6 +1236,7 @@ func (ec *executionContext) _FriendsConnection_friends(ctx context.Context, fiel } res := resTmp.([]Character) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1257,13 +1275,14 @@ func (ec *executionContext) _FriendsConnection_friends(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) _FriendsConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *FriendsConnection) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "FriendsConnection", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1277,6 +1296,7 @@ func (ec *executionContext) _FriendsConnection_pageInfo(ctx context.Context, fie } res := resTmp.(PageInfo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._PageInfo(ctx, field.Selections, &res) } @@ -1315,13 +1335,14 @@ func (ec *executionContext) _FriendsEdge(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) _FriendsEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *FriendsEdge) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "FriendsEdge", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1335,18 +1356,20 @@ func (ec *executionContext) _FriendsEdge_cursor(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _FriendsEdge_node(ctx context.Context, field graphql.CollectedField, obj *FriendsEdge) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "FriendsEdge", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1357,6 +1380,7 @@ func (ec *executionContext) _FriendsEdge_node(ctx context.Context, field graphql } res := resTmp.(Character) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Character(ctx, field.Selections, &res) } @@ -1432,13 +1456,14 @@ func (ec *executionContext) _Human(ctx context.Context, sel ast.SelectionSet, ob // nolint: vetshadow func (ec *executionContext) _Human_id(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Human", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1452,18 +1477,20 @@ func (ec *executionContext) _Human_id(ctx context.Context, field graphql.Collect } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _Human_name(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Human", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1477,11 +1504,13 @@ func (ec *executionContext) _Human_name(ctx context.Context, field graphql.Colle } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Human_height(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Human_height_args(rawArgs) if err != nil { @@ -1494,7 +1523,7 @@ func (ec *executionContext) _Human_height(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1508,18 +1537,20 @@ func (ec *executionContext) _Human_height(ctx context.Context, field graphql.Col } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } // nolint: vetshadow func (ec *executionContext) _Human_mass(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Human", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1530,18 +1561,20 @@ func (ec *executionContext) _Human_mass(ctx context.Context, field graphql.Colle } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } // nolint: vetshadow func (ec *executionContext) _Human_friends(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Human", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1552,6 +1585,7 @@ func (ec *executionContext) _Human_friends(ctx context.Context, field graphql.Co } res := resTmp.([]Character) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1590,6 +1624,7 @@ func (ec *executionContext) _Human_friends(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) _Human_friendsConnection(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Human_friendsConnection_args(rawArgs) if err != nil { @@ -1602,7 +1637,7 @@ func (ec *executionContext) _Human_friendsConnection(ctx context.Context, field Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1616,19 +1651,21 @@ func (ec *executionContext) _Human_friendsConnection(ctx context.Context, field } res := resTmp.(FriendsConnection) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._FriendsConnection(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _Human_appearsIn(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Human", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1642,6 +1679,7 @@ func (ec *executionContext) _Human_appearsIn(ctx context.Context, field graphql. } res := resTmp.([]Episode) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -1656,13 +1694,14 @@ func (ec *executionContext) _Human_appearsIn(ctx context.Context, field graphql. // nolint: vetshadow func (ec *executionContext) _Human_starships(ctx context.Context, field graphql.CollectedField, obj *Human) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Human", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1673,6 +1712,7 @@ func (ec *executionContext) _Human_starships(ctx context.Context, field graphql. } res := resTmp.([]Starship) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1742,6 +1782,7 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet) // nolint: vetshadow func (ec *executionContext) _Mutation_createReview(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Mutation_createReview_args(rawArgs) if err != nil { @@ -1754,7 +1795,7 @@ func (ec *executionContext) _Mutation_createReview(ctx context.Context, field gr Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1765,6 +1806,7 @@ func (ec *executionContext) _Mutation_createReview(ctx context.Context, field gr } res := resTmp.(*Review) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1815,13 +1857,14 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *PageInfo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "PageInfo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1835,18 +1878,20 @@ func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field gra } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *PageInfo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "PageInfo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1860,18 +1905,20 @@ func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *PageInfo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "PageInfo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1885,6 +1932,7 @@ func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } @@ -1972,6 +2020,7 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_hero(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_hero_args(rawArgs) if err != nil { @@ -1984,7 +2033,7 @@ func (ec *executionContext) _Query_hero(ctx context.Context, field graphql.Colle Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1995,12 +2044,14 @@ func (ec *executionContext) _Query_hero(ctx context.Context, field graphql.Colle } res := resTmp.(Character) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Character(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _Query_reviews(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_reviews_args(rawArgs) if err != nil { @@ -2013,7 +2064,7 @@ func (ec *executionContext) _Query_reviews(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2027,6 +2078,7 @@ func (ec *executionContext) _Query_reviews(ctx context.Context, field graphql.Co } res := resTmp.([]Review) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2065,6 +2117,7 @@ func (ec *executionContext) _Query_reviews(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_search_args(rawArgs) if err != nil { @@ -2077,7 +2130,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2091,6 +2144,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col } res := resTmp.([]SearchResult) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2129,6 +2183,7 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query_character(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_character_args(rawArgs) if err != nil { @@ -2141,7 +2196,7 @@ func (ec *executionContext) _Query_character(ctx context.Context, field graphql. Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2152,12 +2207,14 @@ func (ec *executionContext) _Query_character(ctx context.Context, field graphql. } res := resTmp.(Character) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Character(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _Query_droid(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_droid_args(rawArgs) if err != nil { @@ -2170,7 +2227,7 @@ func (ec *executionContext) _Query_droid(ctx context.Context, field graphql.Coll Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2181,6 +2238,7 @@ func (ec *executionContext) _Query_droid(ctx context.Context, field graphql.Coll } res := resTmp.(*Droid) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2191,6 +2249,7 @@ func (ec *executionContext) _Query_droid(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) _Query_human(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_human_args(rawArgs) if err != nil { @@ -2203,7 +2262,7 @@ func (ec *executionContext) _Query_human(ctx context.Context, field graphql.Coll Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2214,6 +2273,7 @@ func (ec *executionContext) _Query_human(ctx context.Context, field graphql.Coll } res := resTmp.(*Human) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2224,6 +2284,7 @@ func (ec *executionContext) _Query_human(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) _Query_starship(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_starship_args(rawArgs) if err != nil { @@ -2236,7 +2297,7 @@ func (ec *executionContext) _Query_starship(ctx context.Context, field graphql.C Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2247,6 +2308,7 @@ func (ec *executionContext) _Query_starship(ctx context.Context, field graphql.C } res := resTmp.(*Starship) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2257,6 +2319,7 @@ func (ec *executionContext) _Query_starship(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -2269,7 +2332,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2280,6 +2343,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2290,13 +2354,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2307,6 +2372,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2351,13 +2417,14 @@ func (ec *executionContext) _Review(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) _Review_stars(ctx context.Context, field graphql.CollectedField, obj *Review) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Review", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2371,18 +2438,20 @@ func (ec *executionContext) _Review_stars(ctx context.Context, field graphql.Col } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _Review_commentary(ctx context.Context, field graphql.CollectedField, obj *Review) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Review", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2393,6 +2462,7 @@ func (ec *executionContext) _Review_commentary(ctx context.Context, field graphq } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -2402,13 +2472,14 @@ func (ec *executionContext) _Review_commentary(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) _Review_time(ctx context.Context, field graphql.CollectedField, obj *Review) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Review", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2419,6 +2490,7 @@ func (ec *executionContext) _Review_time(ctx context.Context, field graphql.Coll } res := resTmp.(time.Time) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalTime(res) } @@ -2474,13 +2546,14 @@ func (ec *executionContext) _Starship(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _Starship_id(ctx context.Context, field graphql.CollectedField, obj *Starship) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Starship", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2494,18 +2567,20 @@ func (ec *executionContext) _Starship_id(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalID(res) } // nolint: vetshadow func (ec *executionContext) _Starship_name(ctx context.Context, field graphql.CollectedField, obj *Starship) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Starship", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2519,11 +2594,13 @@ func (ec *executionContext) _Starship_name(ctx context.Context, field graphql.Co } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Starship_length(ctx context.Context, field graphql.CollectedField, obj *Starship) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Starship_length_args(rawArgs) if err != nil { @@ -2536,7 +2613,7 @@ func (ec *executionContext) _Starship_length(ctx context.Context, field graphql. Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2550,18 +2627,20 @@ func (ec *executionContext) _Starship_length(ctx context.Context, field graphql. } res := resTmp.(float64) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalFloat(res) } // nolint: vetshadow func (ec *executionContext) _Starship_history(ctx context.Context, field graphql.CollectedField, obj *Starship) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Starship", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2575,6 +2654,7 @@ func (ec *executionContext) _Starship_history(ctx context.Context, field graphql } res := resTmp.([][]int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -2640,13 +2720,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2660,18 +2741,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2682,18 +2765,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2707,6 +2792,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -2721,13 +2807,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2741,6 +2828,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2818,13 +2906,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2838,18 +2927,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2860,18 +2951,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2885,18 +2978,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2907,6 +3002,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -2961,13 +3057,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2981,18 +3078,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3003,18 +3102,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3028,6 +3129,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3066,13 +3168,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3086,6 +3189,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -3099,13 +3203,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3119,18 +3224,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3141,6 +3248,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -3185,13 +3293,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3205,18 +3314,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3227,18 +3338,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3252,6 +3365,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -3265,13 +3379,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3282,6 +3397,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3335,13 +3451,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3355,6 +3472,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3393,13 +3511,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3413,6 +3532,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -3426,13 +3546,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3443,6 +3564,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3453,13 +3575,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3470,6 +3593,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3480,13 +3604,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3500,6 +3625,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3584,13 +3710,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3604,18 +3731,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3626,6 +3755,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -3635,13 +3765,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3652,11 +3783,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -3669,7 +3802,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3680,6 +3813,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3718,13 +3852,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3735,6 +3870,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3773,13 +3909,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3790,6 +3927,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3828,6 +3966,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -3840,7 +3979,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3851,6 +3990,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3889,13 +4029,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3906,6 +4047,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -3944,13 +4086,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -3961,6 +4104,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/example/todo/generated.go b/example/todo/generated.go index 13489688ab8..644b01ccfdc 100644 --- a/example/todo/generated.go +++ b/example/todo/generated.go @@ -349,6 +349,7 @@ func (ec *executionContext) _MyMutation(ctx context.Context, sel ast.SelectionSe // nolint: vetshadow func (ec *executionContext) _MyMutation_createTodo(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_MyMutation_createTodo_args(rawArgs) if err != nil { @@ -361,7 +362,7 @@ func (ec *executionContext) _MyMutation_createTodo(ctx context.Context, field gr Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -375,12 +376,14 @@ func (ec *executionContext) _MyMutation_createTodo(ctx context.Context, field gr } res := resTmp.(Todo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Todo(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _MyMutation_updateTodo(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_MyMutation_updateTodo_args(rawArgs) if err != nil { @@ -393,7 +396,7 @@ func (ec *executionContext) _MyMutation_updateTodo(ctx context.Context, field gr Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -404,6 +407,7 @@ func (ec *executionContext) _MyMutation_updateTodo(ctx context.Context, field gr } res := resTmp.(*Todo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -469,6 +473,7 @@ func (ec *executionContext) _MyQuery(ctx context.Context, sel ast.SelectionSet) // nolint: vetshadow func (ec *executionContext) _MyQuery_todo(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_MyQuery_todo_args(rawArgs) if err != nil { @@ -481,7 +486,7 @@ func (ec *executionContext) _MyQuery_todo(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -492,6 +497,7 @@ func (ec *executionContext) _MyQuery_todo(ctx context.Context, field graphql.Col } res := resTmp.(*Todo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -502,13 +508,14 @@ func (ec *executionContext) _MyQuery_todo(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _MyQuery_lastTodo(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "MyQuery", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -519,6 +526,7 @@ func (ec *executionContext) _MyQuery_lastTodo(ctx context.Context, field graphql } res := resTmp.(*Todo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -529,13 +537,14 @@ func (ec *executionContext) _MyQuery_lastTodo(ctx context.Context, field graphql // nolint: vetshadow func (ec *executionContext) _MyQuery_todos(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "MyQuery", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -549,6 +558,7 @@ func (ec *executionContext) _MyQuery_todos(ctx context.Context, field graphql.Co } res := resTmp.([]Todo) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -587,6 +597,7 @@ func (ec *executionContext) _MyQuery_todos(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) _MyQuery___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_MyQuery___type_args(rawArgs) if err != nil { @@ -599,7 +610,7 @@ func (ec *executionContext) _MyQuery___type(ctx context.Context, field graphql.C Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -610,6 +621,7 @@ func (ec *executionContext) _MyQuery___type(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -620,13 +632,14 @@ func (ec *executionContext) _MyQuery___type(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) _MyQuery___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "MyQuery", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -637,6 +650,7 @@ func (ec *executionContext) _MyQuery___schema(ctx context.Context, field graphql } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -687,13 +701,14 @@ func (ec *executionContext) _Todo(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -707,18 +722,20 @@ func (ec *executionContext) _Todo_id(ctx context.Context, field graphql.Collecte } res := resTmp.(int) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalInt(res) } // nolint: vetshadow func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -732,18 +749,20 @@ func (ec *executionContext) _Todo_text(ctx context.Context, field graphql.Collec } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.CollectedField, obj *Todo) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Todo", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -757,6 +776,7 @@ func (ec *executionContext) _Todo_done(ctx context.Context, field graphql.Collec } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } @@ -804,13 +824,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -824,18 +845,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -846,18 +869,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -871,6 +896,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -885,13 +911,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -905,6 +932,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -982,13 +1010,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1002,18 +1031,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1024,18 +1055,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1049,18 +1082,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1071,6 +1106,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1125,13 +1161,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1145,18 +1182,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1167,18 +1206,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1192,6 +1233,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1230,13 +1272,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1250,6 +1293,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1263,13 +1307,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1283,18 +1328,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1305,6 +1352,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1349,13 +1397,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1369,18 +1418,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1391,18 +1442,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1416,6 +1469,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1429,13 +1483,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1446,6 +1501,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1499,13 +1555,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1519,6 +1576,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1557,13 +1615,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1577,6 +1636,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1590,13 +1650,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1607,6 +1668,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1617,13 +1679,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1634,6 +1697,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1644,13 +1708,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1664,6 +1729,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1748,13 +1814,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1768,18 +1835,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1790,6 +1859,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1799,13 +1869,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1816,11 +1887,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -1833,7 +1906,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1844,6 +1917,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1882,13 +1956,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1899,6 +1974,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1937,13 +2013,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1954,6 +2031,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1992,6 +2070,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -2004,7 +2083,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2015,6 +2094,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2053,13 +2133,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2070,6 +2151,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2108,13 +2190,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2125,6 +2208,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null diff --git a/graphql/tracer.go b/graphql/tracer.go index b40dd143923..fb545f6978b 100644 --- a/graphql/tracer.go +++ b/graphql/tracer.go @@ -1,14 +1,18 @@ package graphql -import "context" +import ( + "context" +) var _ Tracer = (*NopTracer)(nil) type Tracer interface { StartOperationExecution(ctx context.Context) context.Context - EndOperationExecution(ctx context.Context) - StartFieldExecution(ctx context.Context) context.Context + StartFieldExecution(ctx context.Context, field CollectedField) context.Context + StartFieldResolverExecution(ctx context.Context, rc *ResolverContext) context.Context + StartFieldChildExecution(ctx context.Context) context.Context EndFieldExecution(ctx context.Context) + EndOperationExecution(ctx context.Context) } type NopTracer struct{} @@ -17,12 +21,20 @@ func (NopTracer) StartOperationExecution(ctx context.Context) context.Context { return ctx } -func (NopTracer) EndOperationExecution(ctx context.Context) { +func (NopTracer) StartFieldExecution(ctx context.Context, field CollectedField) context.Context { + return ctx +} + +func (NopTracer) StartFieldResolverExecution(ctx context.Context, rc *ResolverContext) context.Context { + return ctx } -func (NopTracer) StartFieldExecution(ctx context.Context) context.Context { +func (NopTracer) StartFieldChildExecution(ctx context.Context) context.Context { return ctx } func (NopTracer) EndFieldExecution(ctx context.Context) { } + +func (NopTracer) EndOperationExecution(ctx context.Context) { +} diff --git a/handler/graphql.go b/handler/graphql.go index cb2e2a7de78..13d013613a3 100644 --- a/handler/graphql.go +++ b/handler/graphql.go @@ -166,14 +166,21 @@ func (tw *tracerWrapper) StartOperationExecution(ctx context.Context) context.Co return ctx } -func (tw *tracerWrapper) EndOperationExecution(ctx context.Context) { - tw.tracer2.EndOperationExecution(ctx) - tw.tracer1.EndOperationExecution(ctx) +func (tw *tracerWrapper) StartFieldExecution(ctx context.Context, field graphql.CollectedField) context.Context { + ctx = tw.tracer1.StartFieldExecution(ctx, field) + ctx = tw.tracer2.StartFieldExecution(ctx, field) + return ctx +} + +func (tw *tracerWrapper) StartFieldResolverExecution(ctx context.Context, rc *graphql.ResolverContext) context.Context { + ctx = tw.tracer1.StartFieldResolverExecution(ctx, rc) + ctx = tw.tracer2.StartFieldResolverExecution(ctx, rc) + return ctx } -func (tw *tracerWrapper) StartFieldExecution(ctx context.Context) context.Context { - ctx = tw.tracer1.StartFieldExecution(ctx) - ctx = tw.tracer2.StartFieldExecution(ctx) +func (tw *tracerWrapper) StartFieldChildExecution(ctx context.Context) context.Context { + ctx = tw.tracer1.StartFieldChildExecution(ctx) + ctx = tw.tracer2.StartFieldChildExecution(ctx) return ctx } @@ -182,6 +189,11 @@ func (tw *tracerWrapper) EndFieldExecution(ctx context.Context) { tw.tracer1.EndFieldExecution(ctx) } +func (tw *tracerWrapper) EndOperationExecution(ctx context.Context) { + tw.tracer2.EndOperationExecution(ctx) + tw.tracer1.EndOperationExecution(ctx) +} + // CacheSize sets the maximum size of the query cache. // If size is less than or equal to 0, the cache is disabled. func CacheSize(size int) Option { diff --git a/integration/generated.go b/integration/generated.go index 042cc7e4931..06735480a67 100644 --- a/integration/generated.go +++ b/integration/generated.go @@ -367,13 +367,14 @@ func (ec *executionContext) _Element(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) _Element_child(ctx context.Context, field graphql.CollectedField, obj *models.Element) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Element", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -387,19 +388,21 @@ func (ec *executionContext) _Element_child(ctx context.Context, field graphql.Co } res := resTmp.(models.Element) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return ec._Element(ctx, field.Selections, &res) } // nolint: vetshadow func (ec *executionContext) _Element_error(ctx context.Context, field graphql.CollectedField, obj *models.Element) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Element", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -413,18 +416,20 @@ func (ec *executionContext) _Element_error(ctx context.Context, field graphql.Co } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) _Element_mismatched(ctx context.Context, field graphql.CollectedField, obj *models.Element) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Element", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -435,6 +440,7 @@ func (ec *executionContext) _Element_mismatched(ctx context.Context, field graph } res := resTmp.([]bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -522,13 +528,14 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr // nolint: vetshadow func (ec *executionContext) _Query_path(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -539,6 +546,7 @@ func (ec *executionContext) _Query_path(ctx context.Context, field graphql.Colle } res := resTmp.([]*models.Element) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -581,6 +589,7 @@ func (ec *executionContext) _Query_path(ctx context.Context, field graphql.Colle // nolint: vetshadow func (ec *executionContext) _Query_date(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_date_args(rawArgs) if err != nil { @@ -593,7 +602,7 @@ func (ec *executionContext) _Query_date(ctx context.Context, field graphql.Colle Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -607,18 +616,20 @@ func (ec *executionContext) _Query_date(ctx context.Context, field graphql.Colle } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -629,6 +640,7 @@ func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.Col } res := resTmp.(*models.Viewer) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -639,13 +651,14 @@ func (ec *executionContext) _Query_viewer(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query_jsonEncoding(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -659,11 +672,13 @@ func (ec *executionContext) _Query_jsonEncoding(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _Query_error(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query_error_args(rawArgs) if err != nil { @@ -676,7 +691,7 @@ func (ec *executionContext) _Query_error(ctx context.Context, field graphql.Coll Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -690,11 +705,13 @@ func (ec *executionContext) _Query_error(ctx context.Context, field graphql.Coll } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) _Query___type(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field_Query___type_args(rawArgs) if err != nil { @@ -707,7 +724,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -718,6 +735,7 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -728,13 +746,14 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.CollectedField) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Query", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -745,6 +764,7 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C } res := resTmp.(*introspection.Schema) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -795,13 +815,14 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj // nolint: vetshadow func (ec *executionContext) _User_name(ctx context.Context, field graphql.CollectedField, obj *remote_api.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -815,18 +836,20 @@ func (ec *executionContext) _User_name(ctx context.Context, field graphql.Collec } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) _User_likes(ctx context.Context, field graphql.CollectedField, obj *remote_api.User) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "User", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -840,6 +863,7 @@ func (ec *executionContext) _User_likes(ctx context.Context, field graphql.Colle } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -881,13 +905,14 @@ func (ec *executionContext) _Viewer(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) _Viewer_user(ctx context.Context, field graphql.CollectedField, obj *models.Viewer) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "Viewer", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -898,6 +923,7 @@ func (ec *executionContext) _Viewer_user(ctx context.Context, field graphql.Coll } res := resTmp.(*remote_api.User) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -950,13 +976,14 @@ func (ec *executionContext) ___Directive(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -970,18 +997,20 @@ func (ec *executionContext) ___Directive_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -992,18 +1021,20 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Directive_locations(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1017,6 +1048,7 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr } res := resTmp.([]string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) @@ -1031,13 +1063,14 @@ func (ec *executionContext) ___Directive_locations(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Directive) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Directive", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1051,6 +1084,7 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1128,13 +1162,14 @@ func (ec *executionContext) ___EnumValue(ctx context.Context, sel ast.SelectionS // nolint: vetshadow func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1148,18 +1183,20 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1170,18 +1207,20 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1195,18 +1234,20 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__EnumValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1217,6 +1258,7 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1271,13 +1313,14 @@ func (ec *executionContext) ___Field(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1291,18 +1334,20 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1313,18 +1358,20 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1338,6 +1385,7 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1376,13 +1424,14 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1396,6 +1445,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1409,13 +1459,14 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col // nolint: vetshadow func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1429,18 +1480,20 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra } res := resTmp.(bool) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalBoolean(res) } // nolint: vetshadow func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, field graphql.CollectedField, obj *introspection.Field) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Field", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1451,6 +1504,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } @@ -1495,13 +1549,14 @@ func (ec *executionContext) ___InputValue(ctx context.Context, sel ast.Selection // nolint: vetshadow func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1515,18 +1570,20 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1537,18 +1594,20 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1562,6 +1621,7 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1575,13 +1635,14 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, field graphql.CollectedField, obj *introspection.InputValue) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__InputValue", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1592,6 +1653,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1645,13 +1707,14 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, // nolint: vetshadow func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1665,6 +1728,7 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1703,13 +1767,14 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C // nolint: vetshadow func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1723,6 +1788,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { if !ec.HasError(rctx) { @@ -1736,13 +1802,14 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1753,6 +1820,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1763,13 +1831,14 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr // nolint: vetshadow func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1780,6 +1849,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1790,13 +1860,14 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel // nolint: vetshadow func (ec *executionContext) ___Schema_directives(ctx context.Context, field graphql.CollectedField, obj *introspection.Schema) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Schema", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1810,6 +1881,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } res := resTmp.([]introspection.Directive) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -1894,13 +1966,14 @@ func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, o // nolint: vetshadow func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1914,18 +1987,20 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1936,6 +2011,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll } res := resTmp.(*string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null @@ -1945,13 +2021,14 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll // nolint: vetshadow func (ec *executionContext) ___Type_description(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1962,11 +2039,13 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph } res := resTmp.(string) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) return graphql.MarshalString(res) } // nolint: vetshadow func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_fields_args(rawArgs) if err != nil { @@ -1979,7 +2058,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -1990,6 +2069,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co } res := resTmp.([]introspection.Field) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2028,13 +2108,14 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co // nolint: vetshadow func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2045,6 +2126,7 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2083,13 +2165,14 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2100,6 +2183,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra } res := resTmp.([]introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2138,6 +2222,7 @@ func (ec *executionContext) ___Type_possibleTypes(ctx context.Context, field gra // nolint: vetshadow func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rawArgs := field.ArgumentMap(ec.Variables) args, err := field___Type_enumValues_args(rawArgs) if err != nil { @@ -2150,7 +2235,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2161,6 +2246,7 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq } res := resTmp.([]introspection.EnumValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2199,13 +2285,14 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq // nolint: vetshadow func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2216,6 +2303,7 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph } res := resTmp.([]introspection.InputValue) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) arr1 := make(graphql.Array, len(res)) var wg sync.WaitGroup @@ -2254,13 +2342,14 @@ func (ec *executionContext) ___Type_inputFields(ctx context.Context, field graph // nolint: vetshadow func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.CollectedField, obj *introspection.Type) graphql.Marshaler { + ctx = ec.Tracer.StartFieldExecution(ctx, field) rctx := &graphql.ResolverContext{ Object: "__Type", Args: nil, Field: field, } ctx = graphql.WithResolverContext(ctx, rctx) - ctx = ec.Tracer.StartFieldExecution(ctx) + ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx) defer ec.Tracer.EndFieldExecution(ctx) resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children @@ -2271,6 +2360,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co } res := resTmp.(*introspection.Type) rctx.Result = res + ctx = ec.Tracer.StartFieldChildExecution(ctx) if res == nil { return graphql.Null