Method: Datadog::Contrib::ActionPack::ActionController::Instrumentation::Metal#datadog_response_status
- Defined in:
- lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb
#datadog_response_status ⇒ Object
129 130 131 132 133 134 135 136 137 138 |
# File 'lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb', line 129 def datadog_response_status case response when ::ActionDispatch::Response response.status when Array # Likely a Rack response array: first element is the status. status = response.first status.class <= Integer ? status : nil end end |