lib/opentelemetry/instrumentation/ethon/patches/easy.rb in opentelemetry-instrumentation-ethon-0.19.2 vs lib/opentelemetry/instrumentation/ethon/patches/easy.rb in opentelemetry-instrumentation-ethon-0.19.3

- old
+ new

@@ -43,10 +43,10 @@ else @otel_span.set_attribute('http.status_code', response_code) @otel_span.status = OpenTelemetry::Trace::Status.error unless (100..399).include?(response_code.to_i) end ensure - @otel_span.finish + @otel_span&.finish @otel_span = nil end super end