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