Sha256: 5feffe12c34464fba1228d84be6bdf9d41e8d2a4333a8bf086211a03721b4dc6

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 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 'thread/chain'
require_relative 'thread/prepend'

DependencyDetection.defer do
  named :thread

  executes do
    ::NewRelic::Agent.logger.info('Installing Thread Instrumentation')

    if use_prepend?
      prepend_instrument ::Thread, ::NewRelic::Agent::Instrumentation::MonitoredThread::Prepend
    else
      chain_instrument ::NewRelic::Agent::Instrumentation::MonitoredThread::Chain
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
newrelic_rpm-8.13.1 lib/new_relic/agent/instrumentation/thread.rb
newrelic_rpm-8.13.0 lib/new_relic/agent/instrumentation/thread.rb
newrelic_rpm-8.12.0 lib/new_relic/agent/instrumentation/thread.rb
newrelic_rpm-8.11.0 lib/new_relic/agent/instrumentation/thread.rb