module SignalFx::Tracing::Span

Public Instance Methods

record_exception(exception, record_error=true) click to toggle source
# File lib/signalfx/tracing/span.rb, line 6
def record_exception(exception, record_error=true) 
  set_tag(:error, true) if record_error
  set_tag(:'sfx.error.kind', exception.class.to_s) 
  set_tag(:'sfx.error.message', exception.message)
  if not exception.backtrace.nil?
    set_tag(:'sfx.error.stack', exception.backtrace.join('\n'))
  end
end