Sha256: 0fb0eae4155230097261c4e92d821f002d44dcd211cf808fd70a6f6d741ea914

Contents?: true

Size: 486 Bytes

Versions: 6

Compression:

Stored size: 486 Bytes

Contents

# frozen_string_literal: true

# Copyright 2020 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

6 entries across 6 versions & 1 rubygems

Version Path
opentelemetry-instrumentation-ethon-0.10.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.9.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.8.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.7.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.6.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb
opentelemetry-instrumentation-ethon-0.5.0 lib/opentelemetry/instrumentation/ethon/patches/multi.rb