Skip to content

chore: track client idle-in-transaction disconnects as a pool stat#1252

Open
murex971 wants to merge 1 commit into
pgdogdev:mainfrom
murex971:idle-txn
Open

chore: track client idle-in-transaction disconnects as a pool stat#1252
murex971 wants to merge 1 commit into
pgdogdev:mainfrom
murex971:idle-txn

Conversation

@murex971

Copy link
Copy Markdown
Contributor

Adds a client_idle_xact_timeouts counter that increments when a client is
disconnected for idling in a transaction past client_idle_in_transaction_timeout.
The count is recorded on the pool(s) whose connection the client was holding, and
is exposed in SHOW STATS and the /metrics endpoint (totals + averages).

closes #518

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Track idle_in_transaction errors

1 participant