jackhopner / pgx-xray-tracer

Repository from Github https://github.comjackhopner/pgx-xray-tracerRepository from Github https://github.comjackhopner/pgx-xray-tracer

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")
}

About

License:GNU General Public License v3.0


Languages

Language:Go 100.0%