Tracer can combine several tracers into one. You can use New to automatically split tracers by interface.
| 11 | // Tracer can combine several tracers into one. |
| 12 | // You can use New to automatically split tracers by interface. |
| 13 | type Tracer struct { |
| 14 | QueryTracers []pgx.QueryTracer |
| 15 | BatchTracers []pgx.BatchTracer |
| 16 | CopyFromTracers []pgx.CopyFromTracer |
| 17 | PrepareTracers []pgx.PrepareTracer |
| 18 | ConnectTracers []pgx.ConnectTracer |
| 19 | PoolAcquireTracers []pgxpool.AcquireTracer |
| 20 | PoolReleaseTracers []pgxpool.ReleaseTracer |
| 21 | } |
| 22 | |
| 23 | // New returns new Tracer from tracers with automatically split tracers by interface. |
| 24 | func New(tracers ...pgx.QueryTracer) *Tracer { |
nothing calls this directly
no outgoing calls
no test coverage detected