MCPcopy
hub / github.com/jackc/pgx / Tracer

Struct Tracer

multitracer/tracer.go:13–21  ·  view source on GitHub ↗

Tracer can combine several tracers into one. You can use New to automatically split tracers by interface.

Source from the content-addressed store, hash-verified

11// Tracer can combine several tracers into one.
12// You can use New to automatically split tracers by interface.
13type 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.
24func New(tracers ...pgx.QueryTracer) *Tracer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected