Sha256: feaedba5464255164500d1ca77c3845854335924c8367840548de3268cd0b7b8
Contents?: true
Size: 793 Bytes
Versions: 22
Compression:
Stored size: 793 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 'instrumentation' module NewRelic::Agent::Instrumentation module MonitoredFiber module Prepend include NewRelic::Agent::Instrumentation::MonitoredFiber if RUBY_VERSION < '2.7.0' def initialize(*_args, &block) traced_block = add_thread_tracing(&block) initialize_with_newrelic_tracing { super(&traced_block) } end else def initialize(**kawrgs, &block) traced_block = add_thread_tracing(&block) initialize_with_newrelic_tracing { super(**kawrgs, &traced_block) } end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems