lib/opentelemetry/instrumentation/excon/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-excon-0.13.0 vs lib/opentelemetry/instrumentation/excon/middlewares/tracer_middleware.rb in opentelemetry-instrumentation-excon-0.14.0

- old
+ new

@@ -20,11 +20,11 @@ post: 'POST', put: 'PUT', trace: 'TRACE' }.freeze - def request_call(datum) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength + def request_call(datum) # rubocop:disable Metrics/MethodLength begin unless datum.key?(:otel_span) http_method = HTTP_METHODS_SYMBOL_TO_STRING[datum[:method]] tracer.start_span( @@ -37,10 +37,10 @@ }, kind: :client ).tap do |span| datum[:otel_span] = span OpenTelemetry::Trace.with_span(span) do - OpenTelemetry.propagation.http.inject(datum[:headers]) + OpenTelemetry.propagation.inject(datum[:headers]) end end end rescue StandardError => e OpenTelemetry.logger.debug(e.message)