Class: NewRelic::Agent::Transaction

Inherits:
Object
  • Object
show all
Includes:
Pop
Defined in:
lib/new_relic/agent/transaction.rb

Overview

This class represents a single transaction (usually mapping to one web request or background job invocation) instrumented by the Ruby agent.

Class Method Summary collapse

Class Method Details

.recording_web_transaction?Boolean

Returns truthy if the current in-progress transaction is considered a a web transaction (as opposed to, e.g., a background transaction).

Returns:

  • (Boolean)


398
399
400
# File 'lib/new_relic/agent/transaction.rb', line 398

def self.recording_web_transaction?
  self.current && self.current.recording_web_transaction?
end