Sha256: 70384573356147baa6aef2695551665e0e5cf0e3a198a20f9e687c2f52d187c4

Contents?: true

Size: 479 Bytes

Versions: 2

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  module Adapters
    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

2 entries across 2 versions & 1 rubygems

Version Path
opentelemetry-adapters-ethon-0.4.0 lib/opentelemetry/adapters/ethon/patches/multi.rb
opentelemetry-adapters-ethon-0.3.0 lib/opentelemetry/adapters/ethon/patches/multi.rb