Closed guizmaii closed 8 years ago
The instrumentation idea come from here : https://gist.github.com/teamon/e8ae16ffb0cb447e5b49
Just added the #18 code
nice, could you pls squash you commits pls? :+1:
Hum why ?
Well I find it a good practice to enable code review, cherry picking and reverting when a commit encapsulates a feature/bug/refactor in full. Currently its in 41 changes, no test and contains even others changes, which is maintainers hell... If we want to @aserafin keep on doing he good job, we should make his live a simple as possible. So let's keeps changes small & simple without any side effects (well and we need specs, but that's a different story ;)
I'm not sure to understand your why.
My PR is mostly the merge of some others PR like #7 (which is now merged), #9, #14, #15 and #18 with some more work to add the optionnal use of Rails instrumentation and add the compatibility with the next Grape version. Nothing more. Nothing complicated. Furthermore, the diff is pretty small and simple. I personnaly don't care of the git history, it's only esthetic. If you think that I should change/improve something in my code I'm listening to you but I don't understand why a more beautiful git history will help.
And yes we need specs but for now I does not have the time to write them.
;)
ok ;)
To merge after the #9 PR (or close #9 and merge only mine) :
formatter=
method and also because I use the Logging gem (https://github.com/TwP/logging) as logger. This gem is already in charge of formatting data and it does not have aformatter=
method neither.response
could benil
)