Versions in this module Expand all Collapse all v0 v0.7.2 Jul 16, 2024 Changes in this version + const BatchSizeKey + const PrepareStmtNameKey + const QueryParametersKey + const RowsAffectedKey + const SQLStateKey + type Option interface + func WithAttributes(attrs ...attribute.KeyValue) Option + func WithDisableQuerySpanNamePrefix() Option + func WithDisableSQLStatementInAttributes() Option + func WithIncludeQueryParameters() Option + func WithSpanNameFunc(fn SpanNameFunc) Option + func WithTracerProvider(provider trace.TracerProvider) Option + func WithTrimSQLInSpanName() Option + type SpanNameFunc func(ctx context.Context, stmt string) string + type Tracer struct + func NewTracer(opts ...Option) *Tracer + func (t *Tracer) TraceBatchEnd(ctx context.Context, _ *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, _ *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, _ *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, _ *pgx.Conn, data pgx.TraceQueryEndData) + func (t *Tracer) TraceQueryStart(ctx context.Context, conn *pgx.Conn, data pgx.TraceQueryStartData) context.Context