yabeda-rb / yabeda-rails

Yabeda plugin to collect basic metrics for Rails applications
MIT License
155 stars 20 forks source link

Is there any way to use this gem with Grape API? #6

Closed Prorok64b closed 5 years ago

Envek commented 5 years ago

As far as I can see from Grape README it works as Rack application that is mounted to your routes. So there is no rails controllers and actions.

So it looks like no, this gem will not work with Grape API. You need to write separate one that will declare grape-specific metrics (I'm not even know how they should be named: actions, endpoints, methods?). I've never worked with Grape so can't really help there.

Prorok64b commented 5 years ago

Thanks for reply. I found out the same thing and created gem based on yabeda: https://github.com/efigence/yabeda-grape

I hope, somebody will find out it useful.