Skip to content
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

How to integrate this with pgxpool? #234

Open
batazor opened this issue Sep 17, 2023 · 3 comments
Open

How to integrate this with pgxpool? #234

batazor opened this issue Sep 17, 2023 · 3 comments

Comments

@batazor
Copy link

batazor commented Sep 17, 2023

I'm using pgxpool and would like to add otelsql to track my queries, but it's not clear to me if this can be done without reverting back to the original database/sql

@syrm
Copy link

syrm commented Sep 30, 2023

Same question

@nhatthm
Copy link
Owner

nhatthm commented Oct 29, 2023

@batazor @syrm Sorry for the late response. This library supports only sql drivers that implement database/sql. Unfortunately, jackc/pgx doesn't implement that. However, it provides a bridge. I think you could try that

@batazor
Copy link
Author

batazor commented Oct 29, 2023

@nhatthm So, You can make your implement for methods TraceQueryStart and TraceQueryEnd
or you can try exaring/otelpgx

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

No branches or pull requests

3 participants