Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
otelpgx
✓ github.com/exaring/otelpgx
Instrument pgx connection pool with OpenTelemetry.
package main
import (
"github.com/exaring/otelpgx"
"github.com/jackc/pgx/v5/pgxpool"
)
func main() {
config, _ := pgxpool.ParseConfig("postgres://...")
config.ConnConfig.Tracer = otelpgx.NewTracer()
pool, _ := pgxpool.NewWithConfig(context.Background(), config)
defer pool.Close()
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.11.1latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.