Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add histogram support for acquire duration #29

Closed
wants to merge 3 commits into from

Conversation

sashayakovtseva
Copy link

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.

@sashayakovtseva sashayakovtseva marked this pull request as ready for review November 29, 2023 13:40
@jackc
Copy link
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