Skip to content

Commit

Permalink
fix timing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vvakame committed Oct 31, 2018
1 parent a905efa commit fd4f558
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion gqlapollotracing/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ func RequestMiddleware() graphql.RequestMiddleware {

reqCtx := graphql.GetRequestContext(ctx)
td := getTracingData(ctx)
td.prepare()

err := reqCtx.RegisterExtension("tracing", td)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions gqlapollotracing/tracer.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,5 @@ func (t *tracerImpl) EndFieldExecution(ctx context.Context) {
func (t *tracerImpl) EndOperationExecution(ctx context.Context) {
td := getTracingData(ctx)
td.EndTime = timeNowFunc()
td.prepare()
}

0 comments on commit fd4f558

Please sign in to comment.