Skip to content

Add OpenFunc() function #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 24, 2019
Merged

Add OpenFunc() function #7

merged 1 commit into from
Jan 24, 2019

Conversation

nhocki
Copy link

@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