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