Sha256: 269c3ed20605bef5dada1ee53690b9ecb1df54aedc15b5e3b4eb8162a9debb20
Contents?: true
Size: 669 Bytes
Versions: 2
Compression:
Stored size: 669 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 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
newrelic_rpm-9.1.0 | lib/new_relic/agent/instrumentation/fiber/chain.rb |
newrelic_rpm-9.0.0 | lib/new_relic/agent/instrumentation/fiber/chain.rb |