-
Notifications
You must be signed in to change notification settings - Fork 0
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
upgrade dependency on prometheus-client #1
Comments
Hello ! About a year ago we noticed a change in the prototype of
We proceeded with a dirty fix, which was to fix the Upon researching the issue we noticed that other prototypes ( If you didn't experience any trouble at all, I think your best option in the mean time is to stick with 1.2.1 :) |
Now it's all clear - thank you for the explanation :) I wasn't aware of the implicit dependency, and I did bump onto the error you mentioned, but instead of lowering the The "works for me" workaround code for import prometheus_distributed_client
class Counter(prometheus_distributed_client.Counter):
def _multi_samples(self):
for sample in super()._multi_samples():
yield sample + (None, None)
_child_samples = _multi_samples and it's very similar for other metric types. This is definitely not a proper solution, but it was good enough in my case. I propose to leave this issue open until the dependency can be safely upgraded. |
Thanks for the input ! I haven't had time to work on a fix yet but that patch is definitely a step forward in that direction. |
Hi there :)
I've noticed a recent commit, in which you introduced a restriction on
prometheus-client
dependency - now it's gotta be at most version0.12
. Looking at the contents of0.13
release ofprometheus-client
I see no breaking changes or anything else that would justify this restriction in the package you maintain. Where does this restriction come from? Is there anything that you know breaks when version0.13
or more recent is used?I am using previous release of
prometheus-distributed-client
(1.2.1
) with most recentprometheus-client
(0.15
at the moment) and it seems to work just fine, although I am likely not using all features.The text was updated successfully, but these errors were encountered: