use path info if we don't have a pattern

This commit is contained in:
Konstantin Haase 2015-01-14 15:56:44 +01:00
parent f5f6b9d771
commit 831549a173

View File

@ -12,8 +12,7 @@ class Travis::Api::App
after do
instrumenter = ::Skylight::Instrumenter.instance
trace = instrumenter.current_trace if instrumenter
x = trace.endpoint = "#{request.request_method} #{endpoint}" || "unknown" if trace
puts env.inspect unless x
trace.endpoint = "#{request.request_method} #{endpoint || request.path_info}" if trace
end
def endpoint