Skip to content

Commit

Permalink
fix broken metric ydb_go_sdk_ydb_database_sql_conns
Browse files Browse the repository at this point in the history
  • Loading branch information
qrort committed Jan 9, 2025
1 parent 22bd493 commit e5bf707
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
* Fixed panic on span reporting in `xsql/Tx`
* Fixed broken metric `ydb_go_sdk_ydb_database_sql_conns`

## v3.95.5
* Fixed goroutine leak on failed execute call in query client
Expand Down
2 changes: 1 addition & 1 deletion internal/xsql/conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func (c *Conn) CheckNamedValue(value *driver.NamedValue) (finalErr error) {
}

func (c *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (_ driver.Tx, finalErr error) {
onDone := trace.DatabaseSQLOnConnBeginTx(c.connector.trace, &ctx,
onDone := trace.DatabaseSQLOnConnBegin(c.connector.trace, &ctx,
stack.FunctionID("", stack.Package("database/sql")),
)
defer func() {
Expand Down

0 comments on commit e5bf707

Please sign in to comment.