Skip to content

Commit

Permalink
[rails] fixing backtraces with real newline chars
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoot committed Apr 19, 2017
1 parent 38561b2 commit 9430e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ddtrace/contrib/rails/action_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def self.process_action(_name, start, finish, _id, payload)
status = payload.fetch(:status, '?').to_s
if status.starts_with?('5')
span.status = 1
span.set_tag(Datadog::Ext::Errors::STACK, caller().join('\n'))
span.set_tag(Datadog::Ext::Errors::STACK, caller().join("\n"))
end
span.set_tag(Datadog::Ext::HTTP::STATUS_CODE, status)
else
Expand Down

0 comments on commit 9430e3a

Please sign in to comment.