class

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)
Source
new(transaction : Transaction, uri : String, procedure : String | Nil, library : String | Nil)
Source
new(transaction : Transaction, label : String, category : String)
Source

Instance 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.

Source
parent=(val)
Source
parent_root!
Source
pointer

Return a pointer to the C structure that corresponds to the Segment.

Source
segment
Source
structure

Return the C structure that corresponds to the Segment.

Source
timing(start_time, duration)
Source
transaction
Source

Nested types