nvugteveen
nvugteveen

Reputation: 516

Tracking stats for API

I am currently developing a REST API in Rails 5. I am wondering if there is a gem or self-hosted tool (preferably not Google or a service that requires external data sharing) that I can use to provide usage statistics of my API (url, parameters provided, response times, HTTP status and, if possible, user_id etc).

My goal with this, is to determine which methods/functionality are used most, how these methods are performing and where I should plan optimizations and refactoring.

Upvotes: 1

Views: 411

Answers (1)

C dot StrifeVII
C dot StrifeVII

Reputation: 1885

Ok I think I know of something that might work for your needs. Now this gem does not track the actual usage of your API but to the end of you optimization goal:

My goal with this, is to determine which methods/functionality are used most, how these methods are performing and where I should plan optimizations and refactoring

Coverband will tell you what methods are being executed so you can assess usage hotspots. Hope this helps!

https://github.com/danmayer/coverband

Upvotes: 2

Related Questions