mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 16:43:08 +08:00
Instrumentation: log the total number of db queries per request (#54647)
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>
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