Compare commits
No commits in common. "fix/apm-sql-driver" and "master" have entirely different histories.
fix/apm-sq
...
master
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/jackc/pgx/v4/stdlib"
|
_ "github.com/jackc/pgx/v4/stdlib"
|
||||||
"github.com/volatiletech/sqlboiler/v4/boil"
|
"github.com/volatiletech/sqlboiler/v4/boil"
|
||||||
"go.elastic.co/apm/module/apmsql/v2"
|
"go.elastic.co/apm/module/apmsql/v2"
|
||||||
_ "go.elastic.co/apm/module/apmsql/v2/pgxv4"
|
_ "go.elastic.co/apm/module/apmsql/v2/pgxv4"
|
||||||
|
@ -32,7 +32,6 @@ func Connect(cfg Config, server string) (db *sql.DB, err error) {
|
||||||
|
|
||||||
// connect
|
// connect
|
||||||
if cfg.UseElasticAPM {
|
if cfg.UseElasticAPM {
|
||||||
apmsql.Register("pgx", &stdlib.Driver{})
|
|
||||||
db, err = apmsql.Open("pgx", uri)
|
db, err = apmsql.Open("pgx", uri)
|
||||||
} else {
|
} else {
|
||||||
db, err = sql.Open("pgx", uri)
|
db, err = sql.Open("pgx", uri)
|
||||||
|
|
Loading…
Reference in New Issue