Closed vit-panchuk closed 4 years ago
@vit-panchuk thanks for your feedback, and I appreciate if you make a pull request with your changes.
@Prorok64b here we go, I've created a fork and fixed the bug as well as bumped the version to 0.1.3
and created a PR to this repo. Hope, I've done everything correctly.
@vit-panchuk thanks, new version is published on rubygems.
Hi, thanks for your work on Grape metrics implementation of Yabeda!
Yesterday I've tried to use it together with
yabeda-prometheus
, but I could not initialize the metrics withYabeda::Grape.bind_metrics
because of this exception:Seems like your declared tags differ from tags that actually implemented:
https://github.com/efigence/yabeda-grape/blob/master/lib/yabeda/grape.rb#L18-L22
https://github.com/efigence/yabeda-grape/blob/master/lib/yabeda/grape.rb#L27-L31
So I've extracted the code of
Yabeda::Grapes.bind_metrics
to an inializer and changed the tags in metrics declaration totags: %i[method path status]
and everything worked out: