Sha256: 4797e80b1c2e6fec053d1df8e4c9f835d9bdceb94d5cff07c6b9ea66aa4ddaea
Contents?: true
Size: 611 Bytes
Versions: 15
Compression:
Stored size: 611 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 attr_reader :nr_parent_key def initialize_with_newrelic_tracing @nr_parent_key = NewRelic::Agent::Tracer.current_segment_key yield end def add_thread_tracing(&block) return block if !NewRelic::Agent::Tracer.thread_tracing_enabled? NewRelic::Agent::Tracer.thread_block_with_current_transaction(&block) end end end
Version data entries
15 entries across 15 versions & 1 rubygems