Module: TraceViz::Formatters::Helpers::Summary::SourceHelper
- Included in:
- Export::SummaryGroupFormatter
- Defined in:
- lib/trace_viz/formatters/helpers/summary/source_helper.rb
Instance Method Summary collapse
Instance Method Details
#source_location_representation(trace_data) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/trace_viz/formatters/helpers/summary/source_helper.rb', line 10 def source_location_representation(trace_data) return unless config.source_location[:show] truncated_path = Utils::Format::ValueTruncator.truncate( trace_data.path, length: config.source_location[:truncate_length], direction: :start, ) "at #{truncated_path}" end |