-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sql: add tracing spans for each statement executed within a UDF #88929
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: complete! 1 of 0 LGTMs obtained (waiting on @mgartner)
pkg/sql/routine.go
line 72 at r1 (raw file):
for i := 0; i < expr.NumStmts; i++ { if err := func() error { opName := "udf-stmt-" + strconv.Itoa(i)
nit: RoutineExpr
has name
field - it'd be good to include that in the opName
here too.
bd8a316
to
069edb3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (and 1 stale) (waiting on @yuzefovich)
pkg/sql/routine.go
line 72 at r1 (raw file):
Previously, yuzefovich (Yahor Yuzefovich) wrote…
nit:
RoutineExpr
hasname
field - it'd be good to include that in theopName
here too.
Done.
This commit creates a separate tracing span for each statement executed during evaluation of a UDF. Release note: None
069edb3
to
987d004
Compare
TFTR! bors r+ |
Build succeeded: |
blathers backport 22.2.0 |
This commit creates a separate tracing span for each statement executed during evaluation of a UDF.
Release note: None