Open
Description
Add splunksql.OpenDB
function for ones who dislike the sql.Open
and splunksql.Open
which use global state.
Something similar to https://pkg.go.dev/github.com/XSAM/otelsql#OpenDB
Desired API: func OpenDB(c driver.Connector, cfg InstrumentationConfig) *sql.DB
.
We should also add OpenDB
functions to all other sql-based instrumentation libraries that will use splunksql.OpenDB
.
Implementation guidelines: #88 (comment)
Originally posted by @pellared in #88 (comment)
Metadata
Metadata
Assignees
Labels
No labels