lib/ting_yun/instrumentation/sinatra/action.rb in tingyun_rpm-1.6.1 vs lib/ting_yun/instrumentation/sinatra/action.rb in tingyun_rpm-3.2.0

- old
+ new

@@ -11,10 +11,10 @@ def tingyun_metric_path(current_class, path) if find_rule(request.request_method.upcase, path, request.env, request.params) return "Sinatra/#{current_class}/#{namespace}/#{name(path.slice(1..-1), request.env, request.params, request.cookies)}" else - return self.env["PATH_INFO"] unless TingYun::Agent.config[:'nbs.auto_action_naming'] + return self.env["PATH_INFO"] unless TingYun::Agent.config[:'auto_action_naming'] "Sinatra/#{current_class}/#{path}(#{request.request_method.upcase})".squeeze("/") end end end end