-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Support fasthttp #356
Comments
What exactly are you trying to accomplish with fasthttp that this lib shouldn't be able to do? |
I don't have experience with fasthttp. But the interface is clearly defined here. Similar to the |
So I have trouble exposing Anyhow I already succeeded on creating the My question is, should I code that on my side or should I code that on this repo? So that others that want to use this client on fasthttp can use it. |
I would suggest to keep it simple and create a package in a repository you own. For users, it's really not a big difference between |
Ok thanks for your replies and explanation. Closing this. |
@beorn7 Any chance of taking a 2nd look at this after 8 years? I'm one of the maintainers for https://github.com/gofiber/fiber which is based on I noticed @krisdioles has an implementation of promfasthttp here main...krisdioles:client_golang:fasthttp but it is probably outdated by now. |
I don't maintain this repo any longer. The call has to be made by @bwplotka @kakkoyun @ArthurSens . Generally, I still think this can be in a separate repository. If it turns out to be generally useful and popular, we can think about moving it over here. |
Yup, as have been said here: #356 (comment) -- there are many HTTP framework around, but not really popular ones (compared to std one). One option would be to use some interfaces (or generics) for more generic version of promhttp, but those might defy the point of fast HTTP (there is some overhead for interfaces and generics). I would say let's collaborate (e.g. by copying promhttp and tailor for fasthttp) on separate Go module and repo first (we could put it in prometheus-community GitHub org). I would say also a decent place for it would be actually in https://github.com/valyala/fasthttp repo too if @valyala (or other fasthttp maintainers) would be up for it 🤗 |
So, currently there is no way (or is it?) to implement this lib to fasthttp. Is there any plans to support it? Or how to contribute?
The text was updated successfully, but these errors were encountered: