I tried using this library with sqlx, but I cannot get it working.
Any ideas how to solve this problem? My goal is to make instrumentedsql work with named queries.
My code
bebfore:
db, err := sqlx.Open("postgres", config.DB.URL)
after:
sql.Register("instrumented-postgres", instrumentedsql.WrapDriver(&pq.Driver{}, instrumentedsql.WithTracer(opentracingsql.NewTracer())))
db, err := sql.Open("instrumented-postgres", config.DB.URL)
Tracing works just fine, but now I get "pq: syntax error at end of input" errors.
I tried using this library with sqlx, but I cannot get it working.
Any ideas how to solve this problem? My goal is to make
instrumentedsqlwork with named queries.My code
bebfore:
after:
Tracing works just fine, but now I get
"pq: syntax error at end of input"errors.