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 a blocking client API #10

Open
puetzp opened this issue Dec 12, 2023 · 0 comments
Open

Add a blocking client API #10

puetzp opened this issue Dec 12, 2023 · 0 comments

Comments

@puetzp
Copy link
Owner

puetzp commented Dec 12, 2023

In the spirit of reqwest, add an implementation of prometheus_http_query::Client that can be used in synchronous code.

Currently the async Client and all async shortcut functions like label_values are situated directly under the crate root.
The blocking API could be realized in a blocking module that contains a blocking::Client and all the shortcut functions e.g. blocking::label_values.

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

No branches or pull requests

1 participant