Hi,
This gem helps to trace incoming requests, however in case of API made with popular API framework Grape it fails to help. The reason for that is Grape having it's own storage for routes.
Before release 0.29.0 of zipkin-ruby it was possible to patch routable_request? method adding:
return true if Grape::API.recognize_path(path_info)
But with the new version get_route also needs to be patched to get rid of extra slash in the beginning of request.path (env[SCRIPT_NAME] becomes updated because of this line
|
req = Rack::Request.new(env) |
). It seems either Grape is included in the roadmap or it will become incompatible with zipkin.
Hi,
This gem helps to trace incoming requests, however in case of API made with popular API framework Grape it fails to help. The reason for that is Grape having it's own storage for routes.
Before release
0.29.0of zipkin-ruby it was possible to patchroutable_request?method adding:But with the new version
get_routealso needs to be patched to get rid of extra slash in the beginning ofrequest.path(env[SCRIPT_NAME] becomes updated because of this linezipkin-ruby/lib/zipkin-tracer/application.rb
Line 16 in 7c50494