pgx icon indicating copy to clipboard operation
pgx copied to clipboard

feat: tracer supports MultiQueryTracer

Open uh-zz opened this issue 1 year ago • 4 comments

It able to set tracer and logger respectively.

https://github.com/jackc/pgx/issues/1950

uh-zz avatar Mar 31 '24 09:03 uh-zz

As I mentioned on my comment to #1950:

One thing I would be concerned about is how to handle multiple tracers that each implement different hooks. I'm sure it could be handled but it might be a little tricky to both have a clean interface and avoid a performance hit.

As far as I can tell this does not account for this case at all. What if one of tracers implemented pgx.BatchTracer?

jackc avatar Apr 16 '24 17:04 jackc