Skip to content

Add histogram support for acquire duration#29

Closed
sashayakovtseva wants to merge 3 commits into
jackc:masterfrom
sashayakovtseva:add-histogram
Closed

Add histogram support for acquire duration#29
sashayakovtseva wants to merge 3 commits into
jackc:masterfrom
sashayakovtseva:add-histogram

Conversation

@sashayakovtseva
Copy link
Copy Markdown

Hello,

I think it might be useful to have an acquire duration histogram, so I added one :)
Histogram is optional, one can enable it with options. Approach is inspired by prom grpc middleware.

Let me know if any changes are needed for this PR to be accepted, I am open for discussion.
Also please let me know if there's no intend to add such histogram support at all.

Signed-off-by: sashayakovtseva <sashayakovtseva@gmail.com>
Signed-off-by: sashayakovtseva <sashayakovtseva@gmail.com>
Signed-off-by: sashayakovtseva <sashayakovtseva@gmail.com>
@sashayakovtseva sashayakovtseva marked this pull request as ready for review November 29, 2023 13:40
@jackc
Copy link
Copy Markdown
Owner

jackc commented Dec 2, 2023

Sorry, I don't think this would be a good fit for puddle. puddle avoids external dependencies and this brings in the github.com/prometheus/client_golang.

If there was a non-invasive approach to allowing instrumentation or external metrics, I would consider it. But the primary goal for puddle is stability and the bar is really high for changes. See https://github.com/jackc/puddle#status.

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.

2 participants