postgres

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2026 License: MIT Imports: 11 Imported by: 0

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

func NewPGXPool(cfg config.PostgresConfig, logger *zap.Logger) (*pgxpool.Pool, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL