Sha256: 030cf3169bd27a12fe3b07c364603eedb9786214e3659e42b839c9f559629688
Contents?: true
Size: 676 Bytes
Versions: 3
Compression:
Stored size: 676 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 module NewRelic::Agent::Instrumentation module MonitoredFiber::Chain def self.instrument! ::Fiber.class_eval do include NewRelic::Agent::Instrumentation::MonitoredFiber alias_method(:initialize_without_new_relic, :initialize) def initialize(*args, &block) traced_block = add_thread_tracing(*args, &block) initialize_with_newrelic_tracing { initialize_without_new_relic(*args, &traced_block) } end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems