Skip to content

Bump the hyper crate to v1.4.1 and rework prometheus server handling #778

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

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

sarajmunjal
Copy link
Contributor

Description

Hi folks! While trying to build pgcat inside a private repository, I noticed that the hyper version is < 1.0. The current version is v 1.4.1.

This PR bumps it to the latest version and addresses the breaking changes in the hyper library.

Note: the make_service_fn method is no longer available, and I used the guide here to achieve equivalent functionality as far as I can tell.

Testing strategy

Started a local pgcat server
Ran curl localhost:9930/metrics to fetch collected metrics

The output is documented here: https://gist.github.com/sarajmunjal/8ed041db1cbdca23cfa54a2c4f8fd863

Also ran unit tests locally

@sarajmunjal sarajmunjal marked this pull request as ready for review August 26, 2024 05:17
@sarajmunjal
Copy link
Contributor Author

@levkk can I request you for a review? Thanks!

@drdrsh
Copy link
Collaborator

drdrsh commented Aug 29, 2024

I am triggering a CI build on your PR

@drdrsh
Copy link
Collaborator

drdrsh commented Aug 29, 2024

Tests are passing the failure is unrelated. I am merging this.

@drdrsh drdrsh merged commit 7cbc917 into postgresml:main Aug 29, 2024
1 check failed
AndrewJackson2020 pushed a commit to AndrewJackson2020/pgcat that referenced this pull request Sep 3, 2024
…ostgresml#778)

Bump hyper to v1.4.1 and rework prometheus server handling
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