Sha256: 6d7559e6595afddef9b26a73f9260fde2ce9526d95783dc04e4b625fb4af46d4

Contents?: true

Size: 729 Bytes

Versions: 38

Compression:

Stored size: 729 Bytes

Contents

# encoding: utf-8

require 'one_apm/transaction/transaction_sample'
require 'one_apm/transaction/segment'
require 'one_apm/transaction/summary_segment'

module OneApm
  class TransactionSample
    class CompositeSegment < Segment
      attr_reader :detail_segments

      def initialize(segments)
        summary = SummarySegment.new(segments.first)
        super summary.entry_timestamp, "Repeating pattern (#{segments.length} repeats)"

        summary.end_trace(segments.last.exit_timestamp)

        @detail_segments = segments.clone

        add_called_segment(summary)
        end_trace summary.exit_timestamp
      end

      def detail_segments=(segments)
        @detail_segments = segments
      end

    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
oneapm_rpm-1.2.9.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.8 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.8.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.7 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.7.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.6 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.6.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.5 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.5.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.4 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.4.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.3 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.3.rc2 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.2 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.2.rc lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.1.rc lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.0 lib/one_apm/transaction/composite_segment.rb