-
Notifications
You must be signed in to change notification settings - Fork 14
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
Not compliant with Rails.application.routes.recognize_path
#44
Comments
More digging for future investigation. Debugging the method points that the route is registered to the application but, deep inside
when using a normal rails route,
But when using coach, instead of a Dispatcher we have a Mapper
And
The 2 are defined in here: Not sure why we have |
Cause of why, I think, it's not a
Probably our middlewares/routes need to quack more like a controller. |
Apparently routes registered with coach do not show as true by the
Rails.application.routes.recognize_path
method.As a side effect, some gems that might use this method will not work for those endpoints.
e.g. https://github.com/openzipkin/zipkin-ruby -> https://github.com/openzipkin/zipkin-ruby/blob/master/lib/zipkin-tracer/rack/zipkin-tracer.rb#L43.
I've being trying different instrumentation tools and they all failed to report, this one (zipkin) was the first I dug in why, but I suspect this might be affecting others too.
The text was updated successfully, but these errors were encountered: