Documentation
¶
Overview ¶
Package postgres provides a PostgreSQL connection pool (pgx/v5) with built-in OpenTelemetry tracing and Prometheus metrics collection.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPGXPool ¶
NewPGXPool creates a new observable connection pool.
PoolName configures the logical pool identity used as the "db.client.connection.pool.name" trace attribute and the "client_pool_name" Prometheus label. If PoolName is empty (default), it is derived from the "{db-name}-{target-session-attrs}" template.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.