lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.7.0 vs lib/opentelemetry/instrumentation/restclient/patches/request.rb in opentelemetry-instrumentation-restclient-0.8.0

- old
+ new

@@ -27,10 +27,10 @@ 'http.url' => url }, kind: :client ) - tracer.with_span(span) do + OpenTelemetry::Trace.with_span(span) do OpenTelemetry.propagation.http.inject(processed_headers) end yield(span).tap do |response| # Verify return value is a response.