Skip to content

Add OpenFunc() function#7

Merged
nhocki merged 1 commit intomasterfrom
nh-dd-tracer
Jan 24, 2019
Merged

Add OpenFunc() function#7
nhocki merged 1 commit intomasterfrom
nh-dd-tracer

Conversation

@nhocki
Copy link
Copy Markdown

@nhocki nhocki commented Jan 24, 2019

This PR adds the OpenFunc() function that allows us to handle how
the DB connection will be opened. You can pass any function that has the
same signature as sql.Open() and it'll use it to start the connection.

The idea is to open the connections with DataDog SQL wrapper to
start collecting APM metrics for our queries.

This commit adds the `OpenFunc()` function that allows us to handle how
the DB connection will be opened. You can pass any function that has the
same signature as `sql.Open()` and it'll use it to start the connection.

The idea is to open the connections with DataDog [SQL wrapper][1] to
start collecting APM metrics for our queries.

[1]: https://godoc.org/gopkg.in/DataDog/dd-trace-go.v1/contrib/database/sql
@nhocki nhocki merged commit b54be38 into master Jan 24, 2019
@nhocki nhocki deleted the nh-dd-tracer branch January 24, 2019 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants