lib/elastic_apm/spies/faraday.rb in elastic-apm-4.6.2 vs lib/elastic_apm/spies/faraday.rb in elastic-apm-4.7.0

- old
+ new

@@ -107,10 +107,10 @@ result = super(method, url, body, headers) do |req| trace_context.apply_headers { |k, v| req[k] = v } yield req if block end rescue Faraday::ClientError, Faraday::ServerError => e # Faraday::Response::RaiseError - status = e.response[:status] + status = e.response_status http = span&.context&.http if http && status http.status_code = status.to_s span.outcome = Span::Outcome.from_http_status(status) end