Sha256: e3d924289534d334d1b5fcd1d7bbd10f18e3861725fe938e47faace97cd8b58e
Contents?: true
Size: 814 Bytes
Versions: 6
Compression:
Stored size: 814 Bytes
Contents
# frozen_string_literal: true # Copyright The OpenTelemetry Authors # # SPDX-License-Identifier: Apache-2.0 module OpenTelemetry module Instrumentation module Ethon # The Instrumentation class contains logic to detect and install the Ethon # instrumentation class Instrumentation < OpenTelemetry::Instrumentation::Base install do |_config| require_dependencies add_patches end present do defined?(::Ethon::Easy) end private def require_dependencies require_relative 'patches/easy' require_relative 'patches/multi' end def add_patches ::Ethon::Easy.prepend(Patches::Easy) ::Ethon::Multi.prepend(Patches::Multi) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems