NewRelic::Segment
Inherits Reference < Object
A NewRelic::Segment encapsulates a call to NewRelicExt.start_segment, and all of the data management around it.
Constructors
new(transaction : Transaction, product : String, collection : String | Nil, operation : String | Nil, host : String | Nil, port_path_or_id : String | Nil, database_name : String | Nil, query : String | Nil)
Sourcenew(transaction : Transaction, uri : String, procedure : String | Nil, library : String | Nil)
Sourcenew(transaction : Transaction, label : String, category : String)
SourceInstance methods
destroy!
Destroy the underlying resources that were allocated for this object.
This must be called before this object goes out of scope to avoid memory
leaks from resources that have not been freed. Use the block form of the
segment support (NewRelic::Transaction.segment()) to ensure that these
resources are freed.
parent=(val)
Sourceparent_root!
Sourcesegment
Sourcetiming(start_time, duration)
Sourcetransaction
Source