You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
goroutine 638612 [chan receive]:
database/sql.(*Tx).awaitDone(0x14000492000)
/opt/homebrew/opt/go/libexec/src/database/sql/sql.go:2202 +0x38
created by database/sql.(*DB).beginDC in goroutine 638919
/opt/homebrew/opt/go/libexec/src/database/sql/sql.go:1915 +0x1ac
It is very difficult to find where the transaction is not released in the massive business code, so I want to insert some code in src/database/sql to track the parent caller stack.
Will Go provide similar capabilities?
The text was updated successfully, but these errors were encountered:
Proposal Details
expect
Doing this now will not cause an error, but it will have no effect.
go version go1.22.0 darwin/arm64
purpose
The reason for doing this is to insert some code into the std pkg for debugging.
A practical case, I found goroutines leak through
/pprof/goroutine?debug=1
and/pprof/goroutine?debug=2
.It is very difficult to find where the transaction is not released in the massive business code, so I want to insert some code in
src/database/sql
to track the parent caller stack.Will Go provide similar capabilities?
The text was updated successfully, but these errors were encountered: