class

NewRelic::Transaction

Inherits Reference < Object

A NewRelic::Transaction encapsulates a call to either the NewRelicExt::start_web_transaction or the NewRelicExt::start_non_web_transaction functions, and all of the data management around it.

Constructors

new(app : NewRelic, label : String = "transaction", type : Symbol = :web)
Source

Class methods

create(app, label, type = :web)

Instead of directly creating a Transaction object with a specified type (:web or :nonweb), one can call #create with an appropriate type parameter and one will get back the subclass which corresponds to that type, either WebTransaction, or NonWebTransaction.

Source

Instance methods

[]=(k : String, v : Int)
Source
custom_event(event_type : String, **params)
Source
destroy!

Get rid of the data structures associated with this transaction. This class must be called before letting this object be garbage collected in order to avoid a memory leak. The easiest way to do this is to use the block based transaction support, as that will ensure that this method is called and that these resources are destroyed.

Source
error(msg : String = "Error at #{caller[1]}", category : String = "error", priority : Int16 = 0)
Source
ignore!

This transaction will be ignored, and the data that it contains will not be sent to New Relic.

Source
name=(val : String)
Source
pointer

Return a pointer to the Transaction.

Source
segment(label : String = "segment", category : String = "segment", &blk : Segment -> )
Source
segment
Source
structure

Return the corresponding C structure for this transaction.

Source
timing(start_time, duration)
Source
type
Source