lib/opentelemetry/instrumentation/excon/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-excon-0.7.0 vs lib/opentelemetry/instrumentation/excon/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-excon-0.8.0
- old
+ new
@@ -36,10 +36,10 @@
'http.target' => datum[:path]
},
kind: :client
).tap do |span|
datum[:otel_span] = span
- tracer.with_span(span) do
+ OpenTelemetry::Trace.with_span(span) do
OpenTelemetry.propagation.http.inject(datum[:headers])
end
end
end
rescue StandardError => e