aboutsummaryrefslogtreecommitdiffstats
path: root/graphql
diff options
context:
space:
mode:
Diffstat (limited to 'graphql')
-rw-r--r--graphql/gen_graphql.go35
-rw-r--r--graphql/graph/gen_graph.go1251
-rw-r--r--graphql/models/gen_models.go12
3 files changed, 1023 insertions, 275 deletions
diff --git a/graphql/gen_graphql.go b/graphql/gen_graphql.go
index 84e0cfe0..41fa71a9 100644
--- a/graphql/gen_graphql.go
+++ b/graphql/gen_graphql.go
@@ -4,43 +4,12 @@ package main
import (
"fmt"
- "io/ioutil"
- "log"
- "os"
- "path"
- "github.com/99designs/gqlgen/codegen"
+ "github.com/99designs/gqlgen/cmd"
)
func main() {
- current, err := os.Getwd()
- if err != nil {
- log.Fatal(err.Error())
- }
-
- os.Chdir(path.Join(current, "graphql"))
-
fmt.Println("Generating graphql code ...")
- log.SetOutput(os.Stdout)
-
- config, err := codegen.LoadConfigFromDefaultLocations()
- if err != nil {
- log.Fatal(err)
- }
-
- schemaRaw, err := ioutil.ReadFile(config.SchemaFilename)
- if err != nil {
- log.Fatal("unable to open schema: " + err.Error())
- }
- config.SchemaStr = string(schemaRaw)
-
- if err = config.Check(); err != nil {
- log.Fatal("invalid config format: " + err.Error())
- }
-
- err = codegen.Generate(*config)
- if err != nil {
- log.Fatal(err.Error())
- }
+ cmd.Execute()
}
diff --git a/graphql/graph/gen_graph.go b/graphql/graph/gen_graph.go
index 82862d69..3f694a23 100644
--- a/graphql/graph/gen_graph.go
+++ b/graphql/graph/gen_graph.go
@@ -4,19 +4,20 @@ package graph
import (
"bytes"
- context "context"
- fmt "fmt"
- strconv "strconv"
- sync "sync"
- time "time"
-
- graphql "github.com/99designs/gqlgen/graphql"
- introspection "github.com/99designs/gqlgen/graphql/introspection"
- bug "github.com/MichaelMure/git-bug/bug"
- models "github.com/MichaelMure/git-bug/graphql/models"
- git "github.com/MichaelMure/git-bug/util/git"
- gqlparser "github.com/vektah/gqlparser"
- ast "github.com/vektah/gqlparser/ast"
+ "context"
+ "errors"
+ "fmt"
+ "strconv"
+ "sync"
+ "time"
+
+ "github.com/99designs/gqlgen/graphql"
+ "github.com/99designs/gqlgen/graphql/introspection"
+ "github.com/MichaelMure/git-bug/bug"
+ "github.com/MichaelMure/git-bug/graphql/models"
+ "github.com/MichaelMure/git-bug/util/git"
+ "github.com/vektah/gqlparser"
+ "github.com/vektah/gqlparser/ast"
)
// NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
@@ -1921,9 +1922,9 @@ func (e *executableSchema) Query(ctx context.Context, op *ast.OperationDefinitio
})
return &graphql.Response{
- Data: buf,
- Errors: ec.Errors,
- }
+ Data: buf,
+ Errors: ec.Errors,
+ Extensions: ec.Extensions}
}
func (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefinition) *graphql.Response {
@@ -1937,8 +1938,9 @@ func (e *executableSchema) Mutation(ctx context.Context, op *ast.OperationDefini
})
return &graphql.Response{
- Data: buf,
- Errors: ec.Errors,
+ Data: buf,
+ Errors: ec.Errors,
+ Extensions: ec.Extensions,
}
}
@@ -2008,13 +2010,17 @@ func (ec *executionContext) _AddCommentOperation(ctx context.Context, sel ast.Se
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -2025,18 +2031,23 @@ func (ec *executionContext) _AddCommentOperation_hash(ctx context.Context, field
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -2047,20 +2058,25 @@ func (ec *executionContext) _AddCommentOperation_author(ctx context.Context, fie
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.AddCommentOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.AddCommentOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2070,18 +2086,23 @@ func (ec *executionContext) _AddCommentOperation_date(ctx context.Context, field
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -2092,18 +2113,23 @@ func (ec *executionContext) _AddCommentOperation_message(ctx context.Context, fi
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -2114,6 +2140,7 @@ func (ec *executionContext) _AddCommentOperation_files(ctx context.Context, fiel
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -2202,13 +2229,17 @@ func (ec *executionContext) _AddCommentTimelineItem(ctx context.Context, sel ast
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -2219,18 +2250,23 @@ func (ec *executionContext) _AddCommentTimelineItem_hash(ctx context.Context, fi
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -2241,19 +2277,24 @@ func (ec *executionContext) _AddCommentTimelineItem_author(ctx context.Context,
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -2264,18 +2305,23 @@ func (ec *executionContext) _AddCommentTimelineItem_message(ctx context.Context,
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -2286,6 +2332,7 @@ func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, f
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -2300,14 +2347,18 @@ func (ec *executionContext) _AddCommentTimelineItem_files(ctx context.Context, f
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.AddCommentTimelineItem().CreatedAt(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.AddCommentTimelineItem().CreatedAt(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2317,19 +2368,24 @@ func (ec *executionContext) _AddCommentTimelineItem_createdAt(ctx context.Contex
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.AddCommentTimelineItem().LastEdit(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.AddCommentTimelineItem().LastEdit(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2339,18 +2395,23 @@ func (ec *executionContext) _AddCommentTimelineItem_lastEdit(ctx context.Context
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edited(), nil
})
if resTmp == nil {
@@ -2361,18 +2422,23 @@ func (ec *executionContext) _AddCommentTimelineItem_edited(ctx context.Context,
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) _AddCommentTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.AddCommentTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "AddCommentTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.History, nil
})
if resTmp == nil {
@@ -2383,6 +2449,7 @@ func (ec *executionContext) _AddCommentTimelineItem_history(ctx context.Context,
}
res := resTmp.([]bug.CommentHistoryStep)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -2522,13 +2589,17 @@ func (ec *executionContext) _Bug(ctx context.Context, sel ast.SelectionSet, obj
// nolint: vetshadow
func (ec *executionContext) _Bug_id(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Id(), nil
})
if resTmp == nil {
@@ -2539,18 +2610,23 @@ func (ec *executionContext) _Bug_id(ctx context.Context, field graphql.Collected
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_humanId(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.HumanId(), nil
})
if resTmp == nil {
@@ -2561,19 +2637,24 @@ func (ec *executionContext) _Bug_humanId(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) _Bug_status(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Status(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Status(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2583,18 +2664,23 @@ func (ec *executionContext) _Bug_status(ctx context.Context, field graphql.Colle
}
res := resTmp.(models.Status)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _Bug_title(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -2605,18 +2691,23 @@ func (ec *executionContext) _Bug_title(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) _Bug_labels(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Labels, nil
})
if resTmp == nil {
@@ -2627,6 +2718,7 @@ func (ec *executionContext) _Bug_labels(ctx context.Context, field graphql.Colle
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -2641,13 +2733,17 @@ func (ec *executionContext) _Bug_labels(ctx context.Context, field graphql.Colle
// nolint: vetshadow
func (ec *executionContext) _Bug_author(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -2658,19 +2754,24 @@ func (ec *executionContext) _Bug_author(ctx context.Context, field graphql.Colle
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.CreatedAt, nil
})
if resTmp == nil {
@@ -2681,19 +2782,24 @@ func (ec *executionContext) _Bug_createdAt(ctx context.Context, field graphql.Co
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Bug",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().LastEdit(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().LastEdit(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2703,11 +2809,14 @@ func (ec *executionContext) _Bug_lastEdit(ctx context.Context, field graphql.Col
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Bug_comments_args(rawArgs)
if err != nil {
@@ -2720,8 +2829,10 @@ func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.Col
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Comments(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Comments(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2731,12 +2842,15 @@ func (ec *executionContext) _Bug_comments(ctx context.Context, field graphql.Col
}
res := resTmp.(models.CommentConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._CommentConnection(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Bug_timeline_args(rawArgs)
if err != nil {
@@ -2749,8 +2863,10 @@ func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.Col
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Timeline(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Timeline(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2760,12 +2876,15 @@ func (ec *executionContext) _Bug_timeline(ctx context.Context, field graphql.Col
}
res := resTmp.(models.TimelineItemConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._TimelineItemConnection(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.CollectedField, obj *bug.Snapshot) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Bug_operations_args(rawArgs)
if err != nil {
@@ -2778,8 +2897,10 @@ func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.C
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Bug().Operations(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Bug().Operations(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -2789,6 +2910,7 @@ func (ec *executionContext) _Bug_operations(ctx context.Context, field graphql.C
}
res := resTmp.(models.OperationConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._OperationConnection(ctx, field.Selections, &res)
}
@@ -2840,13 +2962,17 @@ func (ec *executionContext) _BugConnection(ctx context.Context, sel ast.Selectio
// nolint: vetshadow
func (ec *executionContext) _BugConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -2857,6 +2983,7 @@ func (ec *executionContext) _BugConnection_edges(ctx context.Context, field grap
}
res := resTmp.([]models.BugEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -2895,13 +3022,17 @@ func (ec *executionContext) _BugConnection_edges(ctx context.Context, field grap
// nolint: vetshadow
func (ec *executionContext) _BugConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -2912,6 +3043,7 @@ func (ec *executionContext) _BugConnection_nodes(ctx context.Context, field grap
}
res := resTmp.([]bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -2950,13 +3082,17 @@ func (ec *executionContext) _BugConnection_nodes(ctx context.Context, field grap
// nolint: vetshadow
func (ec *executionContext) _BugConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -2967,19 +3103,24 @@ func (ec *executionContext) _BugConnection_pageInfo(ctx context.Context, field g
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _BugConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.BugConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -2990,6 +3131,7 @@ func (ec *executionContext) _BugConnection_totalCount(ctx context.Context, field
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -3030,13 +3172,17 @@ func (ec *executionContext) _BugEdge(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) _BugEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.BugEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -3047,18 +3193,23 @@ func (ec *executionContext) _BugEdge_cursor(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) _BugEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.BugEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "BugEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -3069,6 +3220,7 @@ func (ec *executionContext) _BugEdge_node(ctx context.Context, field graphql.Col
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
@@ -3115,13 +3267,17 @@ func (ec *executionContext) _Comment(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) _Comment_author(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Comment",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -3132,19 +3288,24 @@ func (ec *executionContext) _Comment_author(ctx context.Context, field graphql.C
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Comment_message(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Comment",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3155,18 +3316,23 @@ func (ec *executionContext) _Comment_message(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) _Comment_files(ctx context.Context, field graphql.CollectedField, obj *bug.Comment) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Comment",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -3177,6 +3343,7 @@ func (ec *executionContext) _Comment_files(ctx context.Context, field graphql.Co
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -3236,13 +3403,17 @@ func (ec *executionContext) _CommentConnection(ctx context.Context, sel ast.Sele
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -3253,6 +3424,7 @@ func (ec *executionContext) _CommentConnection_edges(ctx context.Context, field
}
res := resTmp.([]models.CommentEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -3291,13 +3463,17 @@ func (ec *executionContext) _CommentConnection_edges(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -3308,6 +3484,7 @@ func (ec *executionContext) _CommentConnection_nodes(ctx context.Context, field
}
res := resTmp.([]bug.Comment)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -3346,13 +3523,17 @@ func (ec *executionContext) _CommentConnection_nodes(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -3363,19 +3544,24 @@ func (ec *executionContext) _CommentConnection_pageInfo(ctx context.Context, fie
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _CommentConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.CommentConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -3386,6 +3572,7 @@ func (ec *executionContext) _CommentConnection_totalCount(ctx context.Context, f
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -3426,13 +3613,17 @@ func (ec *executionContext) _CommentEdge(ctx context.Context, sel ast.SelectionS
// nolint: vetshadow
func (ec *executionContext) _CommentEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.CommentEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -3443,18 +3634,23 @@ func (ec *executionContext) _CommentEdge_cursor(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) _CommentEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.CommentEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -3465,6 +3661,7 @@ func (ec *executionContext) _CommentEdge_node(ctx context.Context, field graphql
}
res := resTmp.(bug.Comment)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Comment(ctx, field.Selections, &res)
}
@@ -3511,13 +3708,17 @@ func (ec *executionContext) _CommentHistoryStep(ctx context.Context, sel ast.Sel
// nolint: vetshadow
func (ec *executionContext) _CommentHistoryStep_message(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentHistoryStep",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3528,19 +3729,24 @@ func (ec *executionContext) _CommentHistoryStep_message(ctx context.Context, fie
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CommentHistoryStep_date(ctx context.Context, field graphql.CollectedField, obj *bug.CommentHistoryStep) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CommentHistoryStep",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CommentHistoryStep().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CommentHistoryStep().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3550,6 +3756,7 @@ func (ec *executionContext) _CommentHistoryStep_date(ctx context.Context, field
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
@@ -3615,13 +3822,17 @@ func (ec *executionContext) _CreateOperation(ctx context.Context, sel ast.Select
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -3632,18 +3843,23 @@ func (ec *executionContext) _CreateOperation_hash(ctx context.Context, field gra
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -3654,20 +3870,25 @@ func (ec *executionContext) _CreateOperation_author(ctx context.Context, field g
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CreateOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CreateOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3677,18 +3898,23 @@ func (ec *executionContext) _CreateOperation_date(ctx context.Context, field gra
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -3699,18 +3925,23 @@ func (ec *executionContext) _CreateOperation_title(ctx context.Context, field gr
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3721,18 +3952,23 @@ func (ec *executionContext) _CreateOperation_message(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -3743,6 +3979,7 @@ func (ec *executionContext) _CreateOperation_files(ctx context.Context, field gr
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -3831,13 +4068,17 @@ func (ec *executionContext) _CreateTimelineItem(ctx context.Context, sel ast.Sel
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -3848,18 +4089,23 @@ func (ec *executionContext) _CreateTimelineItem_hash(ctx context.Context, field
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -3870,19 +4116,24 @@ func (ec *executionContext) _CreateTimelineItem_author(ctx context.Context, fiel
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_message(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -3893,18 +4144,23 @@ func (ec *executionContext) _CreateTimelineItem_message(ctx context.Context, fie
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -3915,6 +4171,7 @@ func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -3929,14 +4186,18 @@ func (ec *executionContext) _CreateTimelineItem_files(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_createdAt(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CreateTimelineItem().CreatedAt(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CreateTimelineItem().CreatedAt(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3946,19 +4207,24 @@ func (ec *executionContext) _CreateTimelineItem_createdAt(ctx context.Context, f
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_lastEdit(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.CreateTimelineItem().LastEdit(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.CreateTimelineItem().LastEdit(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -3968,18 +4234,23 @@ func (ec *executionContext) _CreateTimelineItem_lastEdit(ctx context.Context, fi
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_edited(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edited(), nil
})
if resTmp == nil {
@@ -3990,18 +4261,23 @@ func (ec *executionContext) _CreateTimelineItem_edited(ctx context.Context, fiel
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) _CreateTimelineItem_history(ctx context.Context, field graphql.CollectedField, obj *bug.CreateTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "CreateTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.History, nil
})
if resTmp == nil {
@@ -4012,6 +4288,7 @@ func (ec *executionContext) _CreateTimelineItem_history(ctx context.Context, fie
}
res := resTmp.([]bug.CommentHistoryStep)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -4110,13 +4387,17 @@ func (ec *executionContext) _EditCommentOperation(ctx context.Context, sel ast.S
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -4127,18 +4408,23 @@ func (ec *executionContext) _EditCommentOperation_hash(ctx context.Context, fiel
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -4149,20 +4435,25 @@ func (ec *executionContext) _EditCommentOperation_author(ctx context.Context, fi
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.EditCommentOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.EditCommentOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4172,18 +4463,23 @@ func (ec *executionContext) _EditCommentOperation_date(ctx context.Context, fiel
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_target(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Target, nil
})
if resTmp == nil {
@@ -4194,18 +4490,23 @@ func (ec *executionContext) _EditCommentOperation_target(ctx context.Context, fi
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_message(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Message, nil
})
if resTmp == nil {
@@ -4216,18 +4517,23 @@ func (ec *executionContext) _EditCommentOperation_message(ctx context.Context, f
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _EditCommentOperation_files(ctx context.Context, field graphql.CollectedField, obj *bug.EditCommentOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "EditCommentOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Files, nil
})
if resTmp == nil {
@@ -4238,6 +4544,7 @@ func (ec *executionContext) _EditCommentOperation_files(ctx context.Context, fie
}
res := resTmp.([]git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4307,13 +4614,17 @@ func (ec *executionContext) _LabelChangeOperation(ctx context.Context, sel ast.S
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -4324,18 +4635,23 @@ func (ec *executionContext) _LabelChangeOperation_hash(ctx context.Context, fiel
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -4346,20 +4662,25 @@ func (ec *executionContext) _LabelChangeOperation_author(ctx context.Context, fi
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.LabelChangeOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.LabelChangeOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4369,18 +4690,23 @@ func (ec *executionContext) _LabelChangeOperation_date(ctx context.Context, fiel
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Added, nil
})
if resTmp == nil {
@@ -4391,6 +4717,7 @@ func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, fie
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4405,13 +4732,17 @@ func (ec *executionContext) _LabelChangeOperation_added(ctx context.Context, fie
// nolint: vetshadow
func (ec *executionContext) _LabelChangeOperation_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Removed, nil
})
if resTmp == nil {
@@ -4422,6 +4753,7 @@ func (ec *executionContext) _LabelChangeOperation_removed(ctx context.Context, f
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4491,13 +4823,17 @@ func (ec *executionContext) _LabelChangeTimelineItem(ctx context.Context, sel as
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -4508,18 +4844,23 @@ func (ec *executionContext) _LabelChangeTimelineItem_hash(ctx context.Context, f
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -4530,20 +4871,25 @@ func (ec *executionContext) _LabelChangeTimelineItem_author(ctx context.Context,
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.LabelChangeTimelineItem().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.LabelChangeTimelineItem().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4553,18 +4899,23 @@ func (ec *executionContext) _LabelChangeTimelineItem_date(ctx context.Context, f
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Added, nil
})
if resTmp == nil {
@@ -4575,6 +4926,7 @@ func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context,
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4589,13 +4941,17 @@ func (ec *executionContext) _LabelChangeTimelineItem_added(ctx context.Context,
// nolint: vetshadow
func (ec *executionContext) _LabelChangeTimelineItem_removed(ctx context.Context, field graphql.CollectedField, obj *bug.LabelChangeTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "LabelChangeTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Removed, nil
})
if resTmp == nil {
@@ -4606,6 +4962,7 @@ func (ec *executionContext) _LabelChangeTimelineItem_removed(ctx context.Context
}
res := resTmp.([]bug.Label)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
@@ -4684,6 +5041,8 @@ func (ec *executionContext) _Mutation(ctx context.Context, sel ast.SelectionSet)
// nolint: vetshadow
func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_newBug_args(rawArgs)
if err != nil {
@@ -4696,8 +5055,10 @@ func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().NewBug(ctx, args["repoRef"].(*string), args["title"].(string), args["message"].(string), args["files"].([]git.Hash))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().NewBug(rctx, args["repoRef"].(*string), args["title"].(string), args["message"].(string), args["files"].([]git.Hash))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4707,12 +5068,15 @@ func (ec *executionContext) _Mutation_newBug(ctx context.Context, field graphql.
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_addComment(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_addComment_args(rawArgs)
if err != nil {
@@ -4725,8 +5089,10 @@ func (ec *executionContext) _Mutation_addComment(ctx context.Context, field grap
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().AddComment(ctx, args["repoRef"].(*string), args["prefix"].(string), args["message"].(string), args["files"].([]git.Hash))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().AddComment(rctx, args["repoRef"].(*string), args["prefix"].(string), args["message"].(string), args["files"].([]git.Hash))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4736,12 +5102,15 @@ func (ec *executionContext) _Mutation_addComment(ctx context.Context, field grap
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_changeLabels_args(rawArgs)
if err != nil {
@@ -4754,8 +5123,10 @@ func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field gr
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().ChangeLabels(ctx, args["repoRef"].(*string), args["prefix"].(string), args["added"].([]string), args["removed"].([]string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().ChangeLabels(rctx, args["repoRef"].(*string), args["prefix"].(string), args["added"].([]string), args["removed"].([]string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4765,12 +5136,15 @@ func (ec *executionContext) _Mutation_changeLabels(ctx context.Context, field gr
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_open(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_open_args(rawArgs)
if err != nil {
@@ -4783,8 +5157,10 @@ func (ec *executionContext) _Mutation_open(ctx context.Context, field graphql.Co
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().Open(ctx, args["repoRef"].(*string), args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().Open(rctx, args["repoRef"].(*string), args["prefix"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4794,12 +5170,15 @@ func (ec *executionContext) _Mutation_open(ctx context.Context, field graphql.Co
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_close(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_close_args(rawArgs)
if err != nil {
@@ -4812,8 +5191,10 @@ func (ec *executionContext) _Mutation_close(ctx context.Context, field graphql.C
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().Close(ctx, args["repoRef"].(*string), args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().Close(rctx, args["repoRef"].(*string), args["prefix"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4823,12 +5204,15 @@ func (ec *executionContext) _Mutation_close(ctx context.Context, field graphql.C
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_setTitle_args(rawArgs)
if err != nil {
@@ -4841,8 +5225,10 @@ func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphq
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().SetTitle(ctx, args["repoRef"].(*string), args["prefix"].(string), args["title"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().SetTitle(rctx, args["repoRef"].(*string), args["prefix"].(string), args["title"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4852,12 +5238,15 @@ func (ec *executionContext) _Mutation_setTitle(ctx context.Context, field graphq
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Mutation_commit(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Mutation_commit_args(rawArgs)
if err != nil {
@@ -4870,8 +5259,10 @@ func (ec *executionContext) _Mutation_commit(ctx context.Context, field graphql.
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Mutation().Commit(ctx, args["repoRef"].(*string), args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Mutation().Commit(rctx, args["repoRef"].(*string), args["prefix"].(string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -4881,6 +5272,7 @@ func (ec *executionContext) _Mutation_commit(ctx context.Context, field graphql.
}
res := resTmp.(bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Bug(ctx, field.Selections, &res)
}
@@ -4932,13 +5324,17 @@ func (ec *executionContext) _OperationConnection(ctx context.Context, sel ast.Se
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -4949,6 +5345,7 @@ func (ec *executionContext) _OperationConnection_edges(ctx context.Context, fiel
}
res := resTmp.([]models.OperationEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -4987,13 +5384,17 @@ func (ec *executionContext) _OperationConnection_edges(ctx context.Context, fiel
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -5004,6 +5405,7 @@ func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, fiel
}
res := resTmp.([]bug.Operation)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -5042,13 +5444,17 @@ func (ec *executionContext) _OperationConnection_nodes(ctx context.Context, fiel
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -5059,19 +5465,24 @@ func (ec *executionContext) _OperationConnection_pageInfo(ctx context.Context, f
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _OperationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.OperationConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -5082,6 +5493,7 @@ func (ec *executionContext) _OperationConnection_totalCount(ctx context.Context,
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -5122,13 +5534,17 @@ func (ec *executionContext) _OperationEdge(ctx context.Context, sel ast.Selectio
// nolint: vetshadow
func (ec *executionContext) _OperationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -5139,18 +5555,23 @@ func (ec *executionContext) _OperationEdge_cursor(ctx context.Context, field gra
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _OperationEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.OperationEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "OperationEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -5161,6 +5582,7 @@ func (ec *executionContext) _OperationEdge_node(ctx context.Context, field graph
}
res := resTmp.(bug.Operation)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Operation(ctx, field.Selections, &res)
}
@@ -5212,13 +5634,17 @@ func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet,
// nolint: vetshadow
func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.HasNextPage, nil
})
if resTmp == nil {
@@ -5229,18 +5655,23 @@ 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)
}
// nolint: vetshadow
func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.HasPreviousPage, nil
})
if resTmp == nil {
@@ -5251,18 +5682,23 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field
}
res := resTmp.(bool)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalBoolean(res)
}
// nolint: vetshadow
func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.StartCursor, nil
})
if resTmp == nil {
@@ -5273,18 +5709,23 @@ func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field gra
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *models.PageInfo) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "PageInfo",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.EndCursor, nil
})
if resTmp == nil {
@@ -5295,6 +5736,7 @@ func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graph
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
@@ -5355,20 +5797,25 @@ func (ec *executionContext) _Person(ctx context.Context, sel ast.SelectionSet, o
// nolint: vetshadow
func (ec *executionContext) _Person_name(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().Name(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().Name(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5378,20 +5825,25 @@ func (ec *executionContext) _Person_name(ctx context.Context, field graphql.Coll
// nolint: vetshadow
func (ec *executionContext) _Person_email(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().Email(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().Email(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5401,20 +5853,25 @@ func (ec *executionContext) _Person_email(ctx context.Context, field graphql.Col
// nolint: vetshadow
func (ec *executionContext) _Person_login(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().Login(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().Login(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5424,13 +5881,17 @@ func (ec *executionContext) _Person_login(ctx context.Context, field graphql.Col
// nolint: vetshadow
func (ec *executionContext) _Person_displayName(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.DisplayName(), nil
})
if resTmp == nil {
@@ -5441,25 +5902,31 @@ func (ec *executionContext) _Person_displayName(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) _Person_avatarUrl(ctx context.Context, field graphql.CollectedField, obj *bug.Person) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Person",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Person().AvatarURL(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Person().AvatarURL(rctx, obj)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5515,20 +5982,25 @@ func (ec *executionContext) _Query(ctx context.Context, sel ast.SelectionSet) gr
// nolint: vetshadow
func (ec *executionContext) _Query_defaultRepository(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Query",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Query().DefaultRepository(ctx)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Query().DefaultRepository(rctx)
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Repository)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5539,6 +6011,8 @@ func (ec *executionContext) _Query_defaultRepository(ctx context.Context, field
// nolint: vetshadow
func (ec *executionContext) _Query_repository(ctx context.Context, field graphql.CollectedField) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Query_repository_args(rawArgs)
if err != nil {
@@ -5551,14 +6025,17 @@ func (ec *executionContext) _Query_repository(ctx context.Context, field graphql
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Query().Repository(ctx, args["id"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Query().Repository(rctx, args["id"].(string))
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*models.Repository)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5569,6 +6046,8 @@ func (ec *executionContext) _Query_repository(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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Query___type_args(rawArgs)
if err != nil {
@@ -5581,14 +6060,17 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.introspectType(args["name"].(string)), nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.introspectType(args["name"].(string))
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Type)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5599,20 +6081,25 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "Query",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, nil, func(ctx context.Context) (interface{}, error) {
- return ec.introspectSchema(), nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, nil, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.introspectSchema()
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*introspection.Schema)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5664,6 +6151,8 @@ func (ec *executionContext) _Repository(ctx context.Context, sel ast.SelectionSe
// nolint: vetshadow
func (ec *executionContext) _Repository_allBugs(ctx context.Context, field graphql.CollectedField, obj *models.Repository) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Repository_allBugs_args(rawArgs)
if err != nil {
@@ -5676,8 +6165,10 @@ func (ec *executionContext) _Repository_allBugs(ctx context.Context, field graph
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Repository().AllBugs(ctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Repository().AllBugs(rctx, obj, args["after"].(*string), args["before"].(*string), args["first"].(*int), args["last"].(*int), args["query"].(*string))
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5687,12 +6178,15 @@ func (ec *executionContext) _Repository_allBugs(ctx context.Context, field graph
}
res := resTmp.(models.BugConnection)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._BugConnection(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _Repository_bug(ctx context.Context, field graphql.CollectedField, obj *models.Repository) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field_Repository_bug_args(rawArgs)
if err != nil {
@@ -5705,14 +6199,17 @@ func (ec *executionContext) _Repository_bug(ctx context.Context, field graphql.C
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.Repository().Bug(ctx, obj, args["prefix"].(string))
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.Repository().Bug(rctx, obj, args["prefix"].(string))
})
if resTmp == nil {
return graphql.Null
}
res := resTmp.(*bug.Snapshot)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
if res == nil {
return graphql.Null
@@ -5777,13 +6274,17 @@ func (ec *executionContext) _SetStatusOperation(ctx context.Context, sel ast.Sel
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -5794,18 +6295,23 @@ func (ec *executionContext) _SetStatusOperation_hash(ctx context.Context, field
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -5816,20 +6322,25 @@ func (ec *executionContext) _SetStatusOperation_author(ctx context.Context, fiel
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5839,19 +6350,24 @@ func (ec *executionContext) _SetStatusOperation_date(ctx context.Context, field
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusOperation_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusOperation().Status(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusOperation().Status(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5861,6 +6377,7 @@ func (ec *executionContext) _SetStatusOperation_status(ctx context.Context, fiel
}
res := resTmp.(models.Status)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
@@ -5920,13 +6437,17 @@ func (ec *executionContext) _SetStatusTimelineItem(ctx context.Context, sel ast.
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -5937,18 +6458,23 @@ func (ec *executionContext) _SetStatusTimelineItem_hash(ctx context.Context, fie
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -5959,20 +6485,25 @@ func (ec *executionContext) _SetStatusTimelineItem_author(ctx context.Context, f
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusTimelineItem().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusTimelineItem().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -5982,19 +6513,24 @@ func (ec *executionContext) _SetStatusTimelineItem_date(ctx context.Context, fie
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetStatusTimelineItem_status(ctx context.Context, field graphql.CollectedField, obj *bug.SetStatusTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetStatusTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetStatusTimelineItem().Status(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetStatusTimelineItem().Status(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6004,6 +6540,7 @@ func (ec *executionContext) _SetStatusTimelineItem_status(ctx context.Context, f
}
res := resTmp.(models.Status)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
@@ -6064,13 +6601,17 @@ func (ec *executionContext) _SetTitleOperation(ctx context.Context, sel ast.Sele
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash()
})
if resTmp == nil {
@@ -6081,18 +6622,23 @@ func (ec *executionContext) _SetTitleOperation_hash(ctx context.Context, field g
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -6103,20 +6649,25 @@ func (ec *executionContext) _SetTitleOperation_author(ctx context.Context, field
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetTitleOperation().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetTitleOperation().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6126,18 +6677,23 @@ func (ec *executionContext) _SetTitleOperation_date(ctx context.Context, field g
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -6148,18 +6704,23 @@ func (ec *executionContext) _SetTitleOperation_title(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleOperation_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleOperation) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleOperation",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Was, nil
})
if resTmp == nil {
@@ -6170,6 +6731,7 @@ func (ec *executionContext) _SetTitleOperation_was(ctx context.Context, field gr
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
@@ -6230,13 +6792,17 @@ func (ec *executionContext) _SetTitleTimelineItem(ctx context.Context, sel ast.S
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_hash(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Hash(), nil
})
if resTmp == nil {
@@ -6247,18 +6813,23 @@ func (ec *executionContext) _SetTitleTimelineItem_hash(ctx context.Context, fiel
}
res := resTmp.(git.Hash)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return res
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_author(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Author, nil
})
if resTmp == nil {
@@ -6269,20 +6840,25 @@ func (ec *executionContext) _SetTitleTimelineItem_author(ctx context.Context, fi
}
res := resTmp.(bug.Person)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._Person(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_date(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return ec.resolvers.SetTitleTimelineItem().Date(ctx, obj)
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return ec.resolvers.SetTitleTimelineItem().Date(rctx, obj)
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6292,18 +6868,23 @@ func (ec *executionContext) _SetTitleTimelineItem_date(ctx context.Context, fiel
}
res := resTmp.(time.Time)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalTime(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_title(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Title, nil
})
if resTmp == nil {
@@ -6314,18 +6895,23 @@ func (ec *executionContext) _SetTitleTimelineItem_title(ctx context.Context, fie
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _SetTitleTimelineItem_was(ctx context.Context, field graphql.CollectedField, obj *bug.SetTitleTimelineItem) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "SetTitleTimelineItem",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Was, nil
})
if resTmp == nil {
@@ -6336,6 +6922,7 @@ func (ec *executionContext) _SetTitleTimelineItem_was(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
@@ -6386,13 +6973,17 @@ func (ec *executionContext) _TimelineItemConnection(ctx context.Context, sel ast
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Edges, nil
})
if resTmp == nil {
@@ -6403,6 +6994,7 @@ func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, f
}
res := resTmp.([]models.TimelineItemEdge)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -6441,13 +7033,17 @@ func (ec *executionContext) _TimelineItemConnection_edges(ctx context.Context, f
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Nodes, nil
})
if resTmp == nil {
@@ -6458,6 +7054,7 @@ func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, f
}
res := resTmp.([]bug.TimelineItem)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
arr1 := make(graphql.Array, len(res))
var wg sync.WaitGroup
@@ -6496,13 +7093,17 @@ func (ec *executionContext) _TimelineItemConnection_nodes(ctx context.Context, f
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PageInfo, nil
})
if resTmp == nil {
@@ -6513,19 +7114,24 @@ func (ec *executionContext) _TimelineItemConnection_pageInfo(ctx context.Context
}
res := resTmp.(models.PageInfo)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._PageInfo(ctx, field.Selections, &res)
}
// nolint: vetshadow
func (ec *executionContext) _TimelineItemConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemConnection) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemConnection",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.TotalCount, nil
})
if resTmp == nil {
@@ -6536,6 +7142,7 @@ func (ec *executionContext) _TimelineItemConnection_totalCount(ctx context.Conte
}
res := resTmp.(int)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalInt(res)
}
@@ -6576,13 +7183,17 @@ func (ec *executionContext) _TimelineItemEdge(ctx context.Context, sel ast.Selec
// nolint: vetshadow
func (ec *executionContext) _TimelineItemEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Cursor, nil
})
if resTmp == nil {
@@ -6593,18 +7204,23 @@ func (ec *executionContext) _TimelineItemEdge_cursor(ctx context.Context, field
}
res := resTmp.(string)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return graphql.MarshalString(res)
}
// nolint: vetshadow
func (ec *executionContext) _TimelineItemEdge_node(ctx context.Context, field graphql.CollectedField, obj *models.TimelineItemEdge) graphql.Marshaler {
+ ctx = ec.Tracer.StartFieldExecution(ctx, field)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "TimelineItemEdge",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Node, nil
})
if resTmp == nil {
@@ -6615,6 +7231,7 @@ func (ec *executionContext) _TimelineItemEdge_node(ctx context.Context, field gr
}
res := resTmp.(bug.TimelineItem)
rctx.Result = res
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
return ec._TimelineItem(ctx, field.Selections, &res)
}
@@ -6663,13 +7280,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -6680,18 +7301,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -6699,18 +7325,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Locations, nil
})
if resTmp == nil {
@@ -6721,6 +7352,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))
@@ -6735,13 +7367,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Directive",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if resTmp == nil {
@@ -6752,6 +7388,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
@@ -6829,13 +7466,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -6846,18 +7487,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -6865,19 +7511,24 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.IsDeprecated, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.IsDeprecated(), nil
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -6887,26 +7538,36 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__EnumValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.DeprecationReason, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.DeprecationReason(), nil
})
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
rctx.Result = res
- return graphql.MarshalString(res)
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
+
+ if res == nil {
+ return graphql.Null
+ }
+ return graphql.MarshalString(*res)
}
var __FieldImplementors = []string{"__Field"}
@@ -6960,13 +7621,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -6977,18 +7642,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -6996,18 +7666,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Args, nil
})
if resTmp == nil {
@@ -7018,6 +7693,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
@@ -7056,13 +7732,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if resTmp == nil {
@@ -7073,6 +7753,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) {
@@ -7086,14 +7767,18 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.IsDeprecated, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.IsDeprecated(), nil
})
if resTmp == nil {
if !ec.HasError(rctx) {
@@ -7103,26 +7788,36 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Field",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
- return obj.DeprecationReason, nil
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
+ return obj.DeprecationReason(), nil
})
if resTmp == nil {
return graphql.Null
}
- res := resTmp.(string)
+ res := resTmp.(*string)
rctx.Result = res
- return graphql.MarshalString(res)
+ ctx = ec.Tracer.StartFieldChildExecution(ctx)
+
+ if res == nil {
+ return graphql.Null
+ }
+ return graphql.MarshalString(*res)
}
var __InputValueImplementors = []string{"__InputValue"}
@@ -7166,13 +7861,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name, nil
})
if resTmp == nil {
@@ -7183,18 +7882,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description, nil
})
if resTmp == nil {
@@ -7202,18 +7906,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Type, nil
})
if resTmp == nil {
@@ -7224,6 +7933,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) {
@@ -7237,13 +7947,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__InputValue",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.DefaultValue, nil
})
if resTmp == nil {
@@ -7251,6 +7965,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
@@ -7304,13 +8019,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Types(), nil
})
if resTmp == nil {
@@ -7321,6 +8040,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
@@ -7359,13 +8079,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.QueryType(), nil
})
if resTmp == nil {
@@ -7376,6 +8100,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) {
@@ -7389,13 +8114,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.MutationType(), nil
})
if resTmp == nil {
@@ -7403,6 +8132,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
@@ -7413,13 +8143,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.SubscriptionType(), nil
})
if resTmp == nil {
@@ -7427,6 +8161,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
@@ -7437,13 +8172,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Schema",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Directives(), nil
})
if resTmp == nil {
@@ -7454,6 +8193,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
@@ -7538,13 +8278,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Kind(), nil
})
if resTmp == nil {
@@ -7555,18 +8299,23 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Name(), nil
})
if resTmp == nil {
@@ -7574,6 +8323,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
@@ -7583,13 +8333,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Description(), nil
})
if resTmp == nil {
@@ -7597,11 +8351,14 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field___Type_fields_args(rawArgs)
if err != nil {
@@ -7614,7 +8371,9 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Fields(args["includeDeprecated"].(bool)), nil
})
if resTmp == nil {
@@ -7622,6 +8381,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
@@ -7660,13 +8420,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.Interfaces(), nil
})
if resTmp == nil {
@@ -7674,6 +8438,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
@@ -7712,13 +8477,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.PossibleTypes(), nil
})
if resTmp == nil {
@@ -7726,6 +8495,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
@@ -7764,6 +8534,8 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rawArgs := field.ArgumentMap(ec.Variables)
args, err := field___Type_enumValues_args(rawArgs)
if err != nil {
@@ -7776,7 +8548,9 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.EnumValues(args["includeDeprecated"].(bool)), nil
})
if resTmp == nil {
@@ -7784,6 +8558,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
@@ -7822,13 +8597,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.InputFields(), nil
})
if resTmp == nil {
@@ -7836,6 +8615,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
@@ -7874,13 +8654,17 @@ 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)
+ defer func() { ec.Tracer.EndFieldExecution(ctx) }()
rctx := &graphql.ResolverContext{
Object: "__Type",
Args: nil,
Field: field,
}
ctx = graphql.WithResolverContext(ctx, rctx)
- resTmp := ec.FieldMiddleware(ctx, obj, func(ctx context.Context) (interface{}, error) {
+ ctx = ec.Tracer.StartFieldResolverExecution(ctx, rctx)
+ resTmp := ec.FieldMiddleware(ctx, obj, func(rctx context.Context) (interface{}, error) {
+ ctx = rctx // use context from middleware stack in children
return obj.OfType(), nil
})
if resTmp == nil {
@@ -7888,6 +8672,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
@@ -7900,32 +8685,18 @@ func (ec *executionContext) _Authored(ctx context.Context, sel ast.SelectionSet,
switch obj := (*obj).(type) {
case nil:
return graphql.Null
- case bug.Comment:
- return ec._Comment(ctx, sel, &obj)
case *bug.Comment:
return ec._Comment(ctx, sel, obj)
- case bug.CreateOperation:
- return ec._CreateOperation(ctx, sel, &obj)
case *bug.CreateOperation:
return ec._CreateOperation(ctx, sel, obj)
- case bug.SetTitleOperation:
- return ec._SetTitleOperation(ctx, sel, &obj)
case *bug.SetTitleOperation:
return ec._SetTitleOperation(ctx, sel, obj)
- case bug.AddCommentOperation:
- return ec._AddCommentOperation(ctx, sel, &obj)
case *bug.AddCommentOperation:
return ec._AddCommentOperation(ctx, sel, obj)
- case bug.EditCommentOperation:
- return ec._EditCommentOperation(ctx, sel, &obj)
case *bug.EditCommentOperation:
return ec._EditCommentOperation(ctx, sel, obj)
- case bug.SetStatusOperation:
- return ec._SetStatusOperation(ctx, sel, &obj)
case *bug.SetStatusOperation:
return ec._SetStatusOperation(ctx, sel, obj)
- case bug.LabelChangeOperation:
- return ec._LabelChangeOperation(ctx, sel, &obj)
case *bug.LabelChangeOperation:
return ec._LabelChangeOperation(ctx, sel, obj)
default:
@@ -7994,12 +8765,18 @@ func (ec *executionContext) FieldMiddleware(ctx context.Context, obj interface{}
return res
}
-func (ec *executionContext) introspectSchema() *introspection.Schema {
- return introspection.WrapSchema(parsedSchema)
+func (ec *executionContext) introspectSchema() (*introspection.Schema, error) {
+ if ec.DisableIntrospection {
+ return nil, errors.New("introspection disabled")
+ }
+ return introspection.WrapSchema(parsedSchema), nil
}
-func (ec *executionContext) introspectType(name string) *introspection.Type {
- return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name])
+func (ec *executionContext) introspectType(name string) (*introspection.Type, error) {
+ if ec.DisableIntrospection {
+ return nil, errors.New("introspection disabled")
+ }
+ return introspection.WrapTypeFromDef(parsedSchema, parsedSchema.Types[name]), nil
}
var parsedSchema = gqlparser.MustLoadSchema(
diff --git a/graphql/models/gen_models.go b/graphql/models/gen_models.go
index 849b1842..f8d6b5b2 100644
--- a/graphql/models/gen_models.go
+++ b/graphql/models/gen_models.go
@@ -3,15 +3,17 @@
package models
import (
- fmt "fmt"
- io "io"
- strconv "strconv"
+ "fmt"
+ "io"
+ "strconv"
- bug "github.com/MichaelMure/git-bug/bug"
+ "github.com/MichaelMure/git-bug/bug"
)
// An object that has an author.
-type Authored interface{}
+type Authored interface {
+ IsAuthored()
+}
// The connection type for Bug.
type BugConnection struct {