Support MultiQueryTracer
uh-zz opened this issue · comments
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
By using the MultiQueryTracer
proposed in the following PR, I was able to set tracer and logger respectively.
I thought this is a case that other people might need.
Do you plan to incorporate this into the pgx itself?
Describe the solution you'd like
A clear and concise description of what you want to happen.
I'd be happy to see it implemented in the pgx itself.
Appendix
Do you plan to incorporate this into the pgx itself?
I'm open to something like that being merged, but I haven't seen any actual PRs.
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.