lib/instana/instrumentation/rack.rb in instana-1.4.9 vs lib/instana/instrumentation/rack.rb in instana-1.4.11
- old
+ new
@@ -28,10 +28,10 @@
status, headers, response = @app.call(env)
if ::Instana.tracer.tracing?
kvs[:http][:status] = status
- if status.between?(500, 511)
+ if !status.is_a?(Integer) || status.between?(500, 511)
# Because of the 5xx response, we flag this span as errored but
# without a backtrace (no exception)
::Instana.tracer.log_error(nil)
end