Sha256: 51f07cf2b3d9c49e52f742ce4f3fd7536e5bf70af6425e350a4c2acdc7e29dd7

Contents?: true

Size: 704 Bytes

Versions: 14

Compression:

Stored size: 704 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details.

require 'new_relic/transaction_sample'
require 'new_relic/transaction_sample/segment'
module NewRelic
  class TransactionSample
    class SummarySegment < Segment
      def initialize(segment)
        super segment.entry_timestamp, segment.metric_name

        add_segments segment.called_segments

        end_trace segment.exit_timestamp
      end

      def add_segments(segments)
        segments.collect do |segment|
          SummarySegment.new(segment)
        end.each {|segment| add_called_segment(segment)}
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
newrelic_rpm-3.11.2.286 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.11.1.284 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.11.0.283 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.10.0.279 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.9.275 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.8.273 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.7.266 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.6.257 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.5.251 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.4.245 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.3.241 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.2.239 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.1.236 lib/new_relic/transaction_sample/summary_segment.rb
newrelic_rpm-3.9.0.229 lib/new_relic/transaction_sample/summary_segment.rb