Sha256: c098b76826a412d12dbd366dd32c8527f85f57517134cd6bf00bcb4dc9fe0e2c

Contents?: true

Size: 841 Bytes

Versions: 22

Compression:

Stored size: 841 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

22 entries across 22 versions & 1 rubygems

Version Path
newrelic_rpm-9.14.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.13.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.12.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.11.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.10.2 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.10.1 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.10.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.9.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.8.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.7.1 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.7.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.6.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.5.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.4.2 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.4.1 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.4.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.3.1 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.3.0 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.2.2 lib/new_relic/agent/instrumentation/httprb.rb
newrelic_rpm-9.2.1 lib/new_relic/agent/instrumentation/httprb.rb