arturictus / wrappi

Making APIs fun again!
MIT License
4 stars 2 forks source link

Add reporter callback #17

Open arturictus opened 4 years ago

arturictus commented 4 years ago

add configuration in Endpoint to report. For monitorization

report_callback do |report|
   ElasticSearch.push(report.to_h)
end

report should have:

arturictus commented 4 years ago

It can be done with around_request, but it is worth considering