mirror of
https://github.com/grafana/grafana.git
synced 2025-08-03 06:22:13 +08:00
chore(tracing): add tracing for frontend and db session (#91509)
This PR adds instrumentation for loading frontend SPA along with select methods in the dashboard service, and cleans up span handling in sqlstore. --------- Co-authored-by: Dave Henderson <dave.henderson@grafana.com>
This commit is contained in:
@ -119,6 +119,7 @@ func (h *databaseQueryWrapper) instrument(ctx context.Context, status string, qu
|
||||
|
||||
ctx = log.IncDBCallCounter(ctx)
|
||||
|
||||
// timestamp overridden and recorded AFTER query is run
|
||||
_, span := h.tracer.Start(ctx, "database query", trace.WithTimestamp(begin))
|
||||
defer span.End()
|
||||
|
||||
|
Reference in New Issue
Block a user