Skip to content

Commit

Permalink
server trace timer includes parsing (#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-hoffman committed Apr 9, 2024
1 parent 4baf7c6 commit f8b2e9e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions server/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,8 @@ func (h *Handler) doQuery(
return "", err
}

start := time.Now()

var remainder string
var prequery string
if parsed == nil {
Expand Down Expand Up @@ -384,8 +386,6 @@ func (h *Handler) doQuery(
finish := observeQuery(ctx, query)
defer finish(err)

start := time.Now()

ctx.GetLogger().Tracef("beginning execution")

oCtx := ctx
Expand Down Expand Up @@ -436,7 +436,6 @@ func (h *Handler) doQuery(
}
}
}

})

pollCtx, cancelF := ctx.NewSubContext()
Expand Down

0 comments on commit f8b2e9e

Please sign in to comment.