sql_tracing

package
v1.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryParametersKey = attribute.Key("pgx.query.parameters")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider        tracing.TracerProvider
	EnableStatement bool
	EnableArgs      bool
}

func NewConfig

func NewConfig() Config

func (Config) QueryTracer

func (c Config) QueryTracer() pgx.QueryTracer

type Tracer

type Tracer struct {
	// contains filtered or unexported fields
}

func NewTracer

func NewTracer(tracer trace.Tracer, config Config) Tracer

func (Tracer) TraceQueryEnd

func (t Tracer) TraceQueryEnd(ctx context.Context, _ *pgx.Conn, data pgx.TraceQueryEndData)

func (Tracer) TraceQueryStart

func (t Tracer) TraceQueryStart(ctx context.Context, _ *pgx.Conn, data pgx.TraceQueryStartData) context.Context

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL