Sha256: 40a7ac12b298cea03acf3213ed548627f5a14ed93600c71fa916d6fc0ac48df5

Contents?: true

Size: 611 Bytes

Versions: 14

Compression:

Stored size: 611 Bytes

Contents

# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

module OpenTelemetry
  module Instrumentation
    module Ethon
      module Patches
        # Ethon::Multi patch for instrumentation
        module Multi
          def perform
            easy_handles.each do |easy|
              easy.otel_before_request unless easy.otel_span_started?
            end

            super
          end

          def add(easy)
            easy.otel_before_request unless easy.otel_span_started?

            super
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
opentelemetry-instrumentation-ethon-0.21.9 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.8 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.7 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.6 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.4 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.3 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.2 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.1 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.21.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.20.1 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.20.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.19.5 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.19.4 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.19.3 lib/opentelemetry/instrumentation/ethon/patches/multi.rb