Documentation ¶
Overview ¶
Package multitracer provides a Tracer that can combine several tracers into one.
Index ¶
- type Tracer
- func (t *Tracer) TraceAcquireEnd(ctx context.Context, pool *pgxpool.Pool, data pgxpool.TraceAcquireEndData)
- func (t *Tracer) TraceAcquireStart(ctx context.Context, pool *pgxpool.Pool, data pgxpool.TraceAcquireStartData) context.Context
- func (t *Tracer) TraceBatchEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceBatchEndData)
- func (t *Tracer) TraceBatchQuery(ctx context.Context, conn *pgx.Conn, data pgx.TraceBatchQueryData)
- func (t *Tracer) TraceBatchStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceBatchStartData) context.Context
- func (t *Tracer) TraceConnectEnd(ctx context.Context, data pgx.TraceConnectEndData)
- func (t *Tracer) TraceConnectStart(ctx context.Context, data pgx.TraceConnectStartData) context.Context
- func (t *Tracer) TraceCopyFromEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceCopyFromEndData)
- func (t *Tracer) TraceCopyFromStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceCopyFromStartData) context.Context
- func (t *Tracer) TracePrepareEnd(ctx context.Context, conn *pgx.Conn, data pgx.TracePrepareEndData)
- func (t *Tracer) TracePrepareStart(ctx context.Context, conn *pgx.Conn, data pgx.TracePrepareStartData) context.Context
- func (t *Tracer) TraceQueryEnd(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryEndData)
- func (t *Tracer) TraceQueryStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryStartData) context.Context
- func (t *Tracer) TraceRelease(pool *pgxpool.Pool, data pgxpool.TraceReleaseData)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tracer ¶
type Tracer struct { QueryTracers []pgx.QueryTracer BatchTracers []pgx.BatchTracer CopyFromTracers []pgx.CopyFromTracer PrepareTracers []pgx.PrepareTracer ConnectTracers []pgx.ConnectTracer PoolAcquireTracers []pgxpool.AcquireTracer PoolReleaseTracers []pgxpool.ReleaseTracer }
Tracer can combine several tracers into one. You can use New to automatically split tracers by interface.
func New ¶
func New(tracers ...pgx.QueryTracer) *Tracer
New returns new Tracer from tracers with automatically split tracers by interface.
func (*Tracer) TraceAcquireEnd ¶
func (*Tracer) TraceAcquireStart ¶
func (*Tracer) TraceBatchEnd ¶
func (*Tracer) TraceBatchQuery ¶
func (*Tracer) TraceBatchStart ¶
func (*Tracer) TraceConnectEnd ¶
func (*Tracer) TraceConnectStart ¶
func (*Tracer) TraceCopyFromEnd ¶
func (*Tracer) TraceCopyFromStart ¶
func (*Tracer) TracePrepareEnd ¶
func (*Tracer) TracePrepareStart ¶
func (*Tracer) TraceQueryEnd ¶
func (*Tracer) TraceQueryStart ¶
func (*Tracer) TraceRelease ¶
func (t *Tracer) TraceRelease(pool *pgxpool.Pool, data pgxpool.TraceReleaseData)
Click to show internal directories.
Click to hide internal directories.