Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Grape compatibility #128

Open
yellowred opened this issue Oct 23, 2018 · 1 comment
Open

Feature request: Grape compatibility #128

yellowred opened this issue Oct 23, 2018 · 1 comment

Comments

@yellowred
Copy link
Contributor

yellowred commented Oct 23, 2018

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.

@codefromthecrypt
Copy link
Member

codefromthecrypt commented Oct 23, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants