Skip to content

Commit

Permalink
sql: add tracing span for index recommendation
Browse files Browse the repository at this point in the history
Informs cockroachdb#131544

Release note: None
  • Loading branch information
rytaft committed Nov 14, 2024
1 parent 724c140 commit c5234b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/sql/plan_opt.go
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,9 @@ func (p *planner) DecodeGist(ctx context.Context, gist string, external bool) ([
func (opc *optPlanningCtx) makeQueryIndexRecommendation(
ctx context.Context,
) (_ []indexrec.Rec, err error) {
ctx, sp := tracing.ChildSpan(ctx, "index recommendation")
defer sp.Finish()

defer func() {
if r := recover(); r != nil {
// This code allows us to propagate internal errors without having to add
Expand Down

0 comments on commit c5234b8

Please sign in to comment.