lib/opentelemetry/instrumentation/faraday/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-faraday-0.23.3 vs lib/opentelemetry/instrumentation/faraday/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-faraday-0.23.4

- old
+ new

@@ -58,10 +58,10 @@ Faraday::Instrumentation.instance.tracer end def trace_response(span, response) span.set_attribute('http.status_code', response.status) - span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response.status.to_i) + span.status = OpenTelemetry::Trace::Status.error unless (100..399).cover?(response.status.to_i) end end end end end