Sha256: f9fb860003ebfdc76a533f23737e512f665442469de4eb8d534d2dc6f83fcbd2

Contents?: true

Size: 485 Bytes

Versions: 11

Compression:

Stored size: 485 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
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
opentelemetry-instrumentation-ethon-0.19.2 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.19.1 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.19.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.18.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.17.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.16.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.15.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.14.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.13.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.12.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.11.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb