SQL Expressions: Add internal GMS traces (#104836)

get trace from inside GMS
This commit is contained in:
Kyle Brandt
2025-05-09 14:48:47 -04:00
committed by GitHub
parent feb1ac5ba7
commit 6a6ba723a9
4 changed files with 49 additions and 11 deletions

View File

@ -143,7 +143,7 @@ func (gr *SQLCommand) Execute(ctx context.Context, now time.Time, vars mathexp.V
logger.Debug("Executing query", "query", gr.query, "frames", len(allFrames))
db := sql.DB{}
frame, err := db.QueryFrames(ctx, gr.refID, gr.query, allFrames)
frame, err := db.QueryFrames(ctx, tracer, gr.refID, gr.query, allFrames)
rsp := mathexp.Results{}
if err != nil {