class TCellAgent::Instrumentation::Rails::TCellRoute

Attributes

route_destination[R]
route_id[R]
route_path[R]
route_path_raw[R]

Public Class Methods

new(route = nil) click to toggle source
# File lib/tcell_agent/rails/routes.rb, line 14
def initialize(route = nil)
  @route = route

  @route_path_raw = nil
  @route_path = nil
  @route_destination = nil

  return unless route

  @route_path_raw = route.path.spec.to_s

  @route_path = @route_path_raw
  @route_path = @route_path_raw.chomp('(.:format)')

  @route_destination = nil
  @route_destination = JSON.dump(@route.defaults) if @route.defaults
end

Public Instance Methods

grape_route?() click to toggle source
# File lib/tcell_agent/rails/routes.rb, line 40
def grape_route?
  TCellAgent::Instrumentation.grape_route?(@route)
end
grape_routes() click to toggle source
# File lib/tcell_agent/rails/routes.rb, line 36
def grape_routes
  []
end
report?() click to toggle source
# File lib/tcell_agent/rails/routes.rb, line 32
def report?
  false
end