Skip to content

Commit

Permalink
Merge pull request elastic#69 from ste26054/ste26054-patch-1
Browse files Browse the repository at this point in the history
Fix typo in inspector.rb
  • Loading branch information
mikker authored Feb 26, 2018
2 parents 6d375a4 + a60da18 commit b69eeea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/elastic_apm/util/inspector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def transaction(transaction)
span_width = ms(span.duration) * width_factor
duration_desc = ms(span.duration)
else
span_width = width - indent
span_width = @width - indent
duration_desc = 'RUNNING'
end

Expand All @@ -46,7 +46,7 @@ def transaction(transaction)
lines.map { |s| s[0..@width] }.join("\n")
rescue StandardError => e
puts e
puts e.backspan.join("\n")
puts e.backtrace.join("\n")
nil
end
# rubocop:enable Metrics/AbcSize, Metrics/MethodLength
Expand Down

0 comments on commit b69eeea

Please sign in to comment.