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 can deadpool-diesel be used with diesel-tracing? #313

Open
lsunsi opened this issue Apr 3, 2024 · 0 comments
Open

How can deadpool-diesel be used with diesel-tracing? #313

lsunsi opened this issue Apr 3, 2024 · 0 comments
Labels
A-diesel Area: Diesel / deadpool-diesel enhancement New feature or request

Comments

@lsunsi
Copy link

lsunsi commented Apr 3, 2024

I'm asking this question because the deadpool-diesel implementation exposes deadpool_diesel::postgres::Pool which is set to PgConnection. The diesel-tracing library wraps the PgConnection struct into a InstrumentedPgConnection, which makes me thing using both is incompatible.

That said, I remember using r2d2 long ago and having kind of a generic interface instead of a concrete one, so I could replace the connection. This made me thing that maybe I'm missing something and I could use these two libs together. Can someone shed some light on my confusion?

@bikeshedder bikeshedder added enhancement New feature or request A-diesel Area: Diesel / deadpool-diesel labels Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-diesel Area: Diesel / deadpool-diesel enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants