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