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:
Jeff Levin
2024-08-05 17:17:39 -08:00
committed by GitHub
co-authored by Dave Henderson
parent abbfc15563
commit d4916207a0
9 changed files with 56 additions and 9 deletions
+3
View File
@@ -23,6 +23,9 @@ import (
// 422: unprocessableEntityError
// 500: internalServerError
func (hs *HTTPServer) Search(c *contextmodel.ReqContext) response.Response {
c, span := hs.injectSpan(c, "api.Search")
defer span.End()
query := c.Query("query")
tags := c.QueryStrings("tag")
starred := c.Query("starred")