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 after do
instrumenter = ::Skylight::Instrumenter.instance instrumenter = ::Skylight::Instrumenter.instance
trace = instrumenter.current_trace if instrumenter trace = instrumenter.current_trace if instrumenter
x = trace.endpoint = "#{request.request_method} #{endpoint}" || "unknown" if trace trace.endpoint = "#{request.request_method} #{endpoint || request.path_info}" if trace
puts env.inspect unless x
end end
def endpoint def endpoint