Sha256: e8af1e36ec170239f5274672fcd6914be13640dcb0ab445998497166f45d6ad3
Contents?: true
Size: 847 Bytes
Versions: 4
Compression:
Stored size: 847 Bytes
Contents
# This file is distributed under New Relic's license terms. # See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details. # frozen_string_literal: true require_relative 'httprb/instrumentation' require_relative 'httprb/chain' require_relative 'httprb/prepend' DependencyDetection.defer do named :httprb depends_on do defined?(HTTP) && defined?(HTTP::Client) end executes do ::NewRelic::Agent.logger.info("Installing http.rb Wrappers") require 'new_relic/agent/distributed_tracing/cross_app_tracing' require 'new_relic/agent/http_clients/http_rb_wrappers' end executes do if use_prepend? prepend_instrument HTTP::Client, ::NewRelic::Agent::Instrumentation::HTTPrb::Prepend else chain_instrument ::NewRelic::Agent::Instrumentation::HTTPrb::Chain end end end
Version data entries
4 entries across 4 versions & 1 rubygems