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

Method TraceAcquireStart

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

TraceAcquireStart is called at the beginning of Acquire. The returned context is used for the rest of the call and will be passed to the TraceAcquireEnd.

(ctx context.Context, pool *Pool, data TraceAcquireStartData)

Source from the content-addressed store, hash-verified

11 // TraceAcquireStart is called at the beginning of Acquire.
12 // The returned context is used for the rest of the call and will be passed to the TraceAcquireEnd.
13 TraceAcquireStart(ctx context.Context, pool *Pool, data TraceAcquireStartData) context.Context
14 // TraceAcquireEnd is called when a connection has been acquired.
15 TraceAcquireEnd(ctx context.Context, pool *Pool, data TraceAcquireEndData)
16}

Callers 2

AcquireMethod · 0.65
TraceAcquireStartMethod · 0.65

Implementers 4

TraceLogtracelog/tracelog.go
testTracerpgxpool/tracer_test.go
testFullTracermultitracer/tracer_test.go
Tracermultitracer/tracer.go

Calls

no outgoing calls

Tested by

no test coverage detected