database/sql
A generic interface around SQL (or SQL-like) databases.
Register
Call to
sql.Register
Replace the expression using the template:
// Using the following synthetic imports:
import (
driver "database/sql/driver"
sql "database/sql"
sqltrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql"
)
func(driverName string, driver driver.Driver) {
sql.Register(driverName, driver)
sqltrace.Register(driverName, driver)
}({{ index .AST.Args 0 }}, {{ index .AST.Args 1 }})
Open
Call to
sql.Open
Redirect the call to
gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql.Open
.OpenDB
Call to
sql.OpenDB
Redirect the call to
gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql.OpenDB
.