class TCellAgent::Instrumentation::Rails::TCellRoute4

Constants

METHODS

Public Instance Methods

grape_routes() click to toggle source
# File lib/tcell_agent/rails/routes.rb, line 70
def grape_routes
  if ::Rails::VERSION::MAJOR == 4 && ::Rails::VERSION::MINOR < 2
    @route.app.routes
  else
    @route.app.app.routes
  end
end
report?() click to toggle source
# File lib/tcell_agent/rails/routes.rb, line 62
def report?
  @route.constraints.key?(:request_method) || grape_route?
end
route_methods() click to toggle source
# File lib/tcell_agent/rails/routes.rb, line 66
def route_methods
  METHODS.select { |x| @route.verb.match(x) }
end