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.4.2 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.4.1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.4.0 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.7 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.6 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.5 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.4 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.3 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.2 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.0 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/transaction/composite_segment.rb
oneapm_rpm-1.2.9 lib/one_apm/transaction/composite_segment.rb