Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 508 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 508 Bytes

pgx-xray-tracer

Adds AWS X-Ray tracing support to pgx

Usage

connConfig, err := pgxpool.ParseConfig("postgres://test:password@localhost:5432/test")
if err != nil {
    return errors.Wrap(err, "failed to connect to db")
}
connConfig.ConnConfig.Tracer = pgxxray.NewPGXTracer()

conn, err := pgxpool.NewWithConfig(context.Background(), connConfig)
if err != nil {
    return errors.Wrap(err, "failed to connect to db")
}