Skip to content

jackhopner/pgx-xray-tracer

Repository files navigation

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

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages