pgx
pgx copied to clipboard
feat: tracer supports MultiQueryTracer
It able to set tracer and logger respectively.
https://github.com/jackc/pgx/issues/1950
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?