Signed-off-by: bergquist <carl.bergquist@gmail.com>
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
(cherry picked from commit 78978048c3)
This commit is contained in:
@@ -93,6 +93,8 @@ func (h *databaseQueryWrapper) instrument(ctx context.Context, status string, qu
|
||||
histogram.Observe(elapsed.Seconds())
|
||||
}
|
||||
|
||||
ctx = log.IncDBCallCounter(ctx)
|
||||
|
||||
_, span := h.tracer.Start(ctx, "database query")
|
||||
defer span.End()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user