deadpool icon indicating copy to clipboard operation
deadpool copied to clipboard

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

Open lsunsi opened this issue 2 years ago • 0 comments

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?

lsunsi avatar Apr 03 '24 17:04 lsunsi