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